mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-24 07:48:50 +00:00
20 lines
337 B
C++
20 lines
337 B
C++
#include <iostream>
|
|
#include <algorithm>
|
|
|
|
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;
|
|
}
|