Tuesday, May 3, 2011

10970 - Big Chocolate


#include<iostream>
#include<cstdlib>
#include<cstdio>
using namespace std;
int main()
{
    long m,n;
    while(scanf("%ld%ld",&m,&n)==2)
        printf("%ld\n",m*n-1);
    exit(0);
}

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.