0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-23 09:31:59 +00:00

B - Mike's Sequence

https://codeforces.com/contest/1663/submission/152440976
This commit is contained in:
Baoshuo Ren 2022-04-02 08:29:59 +08:00
parent 822686613b
commit c01b620d0d
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

19
Codeforces/1663/B/B.cpp Normal file
View File

@ -0,0 +1,19 @@
#include <algorithm>
#include <iostream>
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;
}