A. An Olympian Math Problem

cout << n - 1 << endl;

 

 1 #include <bits/stdc++.h>
 2 using namespace std;
 3 
 4 #define ll long long
 5 
 6 int t; 
 7 ll n;
 8 
 9 inline void Run() 
10 {
11     scanf("%d", &t);
12     while (t--)
13     {
14         scanf("%lld", &n);
15         printf("%lld\n", n - 1);
16     }
17 }
18 
19 int main()
20 {
21     #ifdef LOCAL
22         freopen("Test.in", "r", stdin);
23     #endif
24 
25     Run(); 
26 
27     return 0; 
28 }
View Code

相关文章: