From c01b620d0d7062d23808445429f6e9907faef3a0 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sat, 2 Apr 2022 08:29:59 +0800 Subject: [PATCH] B - Mike's Sequence https://codeforces.com/contest/1663/submission/152440976 --- Codeforces/1663/B/B.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Codeforces/1663/B/B.cpp diff --git a/Codeforces/1663/B/B.cpp b/Codeforces/1663/B/B.cpp new file mode 100644 index 00000000..15bd1884 --- /dev/null +++ b/Codeforces/1663/B/B.cpp @@ -0,0 +1,19 @@ +#include +#include + +using std::cin; +using std::cout; +const char endl = '\n'; + +const int ratings[] = {1200, 1400, 1600, 1900, 2100, 2300, 2400, 2600, 3000}; + +int r, x; + +int main() { + std::ios::sync_with_stdio(false); + + cin >> r; + cout << *std::upper_bound(ratings, ratings + 9, r) << endl; + + return 0; +}