Codeforces Round 937 (Div. 4) A. Stair, Peak, or Neither?

Codeforces Round 937 (Div. 4)

A. Stair, Peak, or Neither?

签到题,判断大小即可

代码:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// By SnowDream
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=1e5+10;
int main()
{
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin >> t;
int a,b,c;
while(t--)
{
cin >> a >> b >> c;
if(a<b)
{
if(b<c)
cout << "STATR" << "\n";
else if(b>c)
cout << "PEAK" << "\n";
else
cout << "NONE" << "\n";
}
else
cout << "NONE" << "\n";
}
return 0;
}

Codeforces Round 937 (Div. 4) A. Stair, Peak, or Neither?
http://snowdreamxue.github.io/2024/10/21/Codeforces Round 937 (Div. 4)/A.Stair,Peak,or Neither/
Author
SnowDream
Posted on
October 21, 2024
Licensed under