// No.504 ゲーム大会(ランキング) // https://yukicoder.me/problems/no/504 // #include using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); 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; } }