The problem link is UVa:10970-Big Chocolate
Solution:
#include<stdio.h> int main() { long m,n; while(scanf("%ld %ld",&m,&n)==2) { printf("%ld\n",m*n-1); } return 0; }
Run time: 0.036
User Name on UVA: refatsardar
S | S | M | T | W | T | F |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
The problem link is UVa:10970-Big Chocolate
Solution:
#include<stdio.h> int main() { long m,n; while(scanf("%ld %ld",&m,&n)==2) { printf("%ld\n",m*n-1); } return 0; }
Run time: 0.036
User Name on UVA: refatsardar