Monday, March 10, 2014

UVa Solution 10970 : Big Chocolate


#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;

int main()
{
    long long n, m, ans=0;
    while(scanf("%lld%lld", &n, &m)==2)
    {
        ans=(n*m);
        printf("%lld\n", ans-1);
    }
    return 0;
}

No comments:

Post a Comment

Compare equality of two string in C

#include <stdio.h> #include<string.h> int main() {     char* country = "Bangladesh";     char* country2;     ...