Advertisement
noshin98

uva 10970

Jul 5th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int m,n,min;
  5.     while(scanf("%d%d",&m,&n)==2)
  6.     {
  7.         min=m*n-1;
  8.         printf("%d\n",min);
  9.     }
  10.  
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement