結果

問題 No.504 ゲーム大会(ランキング)
ユーザー aaaaaaiu
提出日時 2019-07-31 00:09:47
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 334 bytes
コンパイル時間 1,774 ms
コンパイル使用メモリ 191,768 KB
最終ジャッジ日時 2025-01-07 10:12:49
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;

int main() {
    int n;
    cin>>n;
    int rank = 1;
    int kscore;
    cin >> kscore;
    cout << rank << endl;
    for (int i = 1; i < n; i++) {
        int a;
        cin >> a;
        if (a > kscore) rank++;
        cout << rank << endl;
    }
    return 0;
}
0