CDOJ--1047
原题链接:http://acm.uestc.edu.cn/problem.php?pid=1047
Cake
1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int main() 5 { 6 long long t,n,m; 7 scanf("%lld",&t); 8 while(t--) 9 { 10 scanf("%lld%lld",&n,&m); 11 printf("%lld\n",n*m-1); 12 } 13 return 0; 14 }