Timus online judge 1264. Workdays



A solution in c++

#include<bits/stdc++.h>
using namespace std;
/// Typedeftypedef long long ll;
#define sc1(a) scanf("%lld",&a)

#define sc2(a,b) scanf("%lld %lld",&a,&b)

#define pf1(a) printf("%lld\n",a)
#define pf2(a,b) printf("%lld %lld\n",a,b)

#define mx INT_MAX#define mod 10000007#define PI acos(-1.0)

int main()
{
    ll first, sec,tc, t = 1;
    sc2(first, sec);    sec++;
    pf1(first * sec);
    return 0;}


OR


#include<stdio.h>

int main()
{
    int a,b,c;
    scanf("%d%d",&a,&b);
    c=(a*(b+1));
    printf("%d\n",c);
    return 0;
}

Post a Comment

0 Comments