A. New Year and the Christmas Ornament

签到。

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

相关文章:

  • 2021-11-04
  • 2021-09-03
  • 2021-07-12
  • 2021-06-03
  • 2021-08-09
  • 2021-10-22
  • 2021-09-15
  • 2021-05-27
猜你喜欢
  • 2021-11-28
  • 2021-09-04
  • 2021-10-27
  • 2022-02-18
  • 2022-12-23
  • 2022-01-14
  • 2022-01-05
相关资源
相似解决方案