A - Thickest Burger

水。

 1 #include <bits/stdc++.h>
 2 using namespace std;
 3 
 4 int t;
 5 int a, b;
 6 
 7 int main()
 8 {
 9     scanf("%d" ,&t);
10     while (t--)
11     {
12         scanf("%d%d", &a, &b);
13         if (a > b) swap(a, b);
14         printf("%d\n", a + b * 2);
15     }
16     return 0;
17 }
View Code

相关文章:

  • 2021-12-04
  • 2021-12-22
  • 2022-01-14
  • 2021-07-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-11-09
  • 2021-04-12
  • 2022-12-23
  • 2021-10-18
  • 2021-08-31
  • 2022-12-23
相关资源
相似解决方案