0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-23 20:28:48 +00:00

D - Is it rated - 3

https://codeforces.com/contest/1663/submission/152441447
This commit is contained in:
Baoshuo Ren 2022-04-02 08:49:31 +08:00
parent e3fad1d784
commit bd57d29a08
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

18
Codeforces/1663/D/D.cpp Normal file
View File

@ -0,0 +1,18 @@
#include <iostream>
#include <string>
using std::cin;
using std::cout;
const char endl = '\n';
int x;
std::string s;
int main() {
std::ios::sync_with_stdio(false);
cin >> s >> x;
cout << (s == "ABC" && x < 2000 || s == "ARC" && x < 2800 || s == "AGC" && x >= 1200 ? "Yes" : "No") << endl;
return 0;
}