// No.504 ゲーム大会(ランキング) // https://yukicoder.me/problems/no/504 // #include using namespace std; int main() { // cin.tie(0); int N; cin >> N; int score_K; cin >> score_K; int currect_rank = 1; cout << currect_rank << endl; for (auto i = 1; i < N; ++i) { int s; cin >> s; if (s > score_K) ++currect_rank; cout << currect_rank << endl; } }