原题链接: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 }                     

 

相关文章:

  • 2021-12-06
  • 2021-10-13
  • 2021-07-23
  • 2021-10-31
  • 2021-12-07
  • 2021-09-04
  • 2021-07-26
  • 2021-06-16
猜你喜欢
  • 2022-01-09
  • 2021-12-29
  • 2022-01-20
  • 2022-02-22
  • 2021-06-16
  • 2021-09-12
相关资源
相似解决方案