From bd57d29a0881d8a0c6d3cb03ae9321eefc4c8604 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 2 Apr 2022 08:49:31 +0800 Subject: [PATCH] D - Is it rated - 3 https://codeforces.com/contest/1663/submission/152441447 --- Codeforces/1663/D/D.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Codeforces/1663/D/D.cpp diff --git a/Codeforces/1663/D/D.cpp b/Codeforces/1663/D/D.cpp new file mode 100644 index 00000000..6c850d28 --- /dev/null +++ b/Codeforces/1663/D/D.cpp @@ -0,0 +1,18 @@ +#include +#include + +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; +}