結果

問題 No.504 ゲーム大会(ランキング)
ユーザー トミー
提出日時 2024-04-14 03:00:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 167 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 80,016 KB
最終ジャッジ日時 2024-10-03 00:24:11
合計ジャッジ時間 2,399 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())
    k = int(input())
    rank = 1
    result = [1]
    for i in range(1, n):
        a = int(input())
        if k < a:
            rank += 1
        result.append(rank)
    for i in result:
        print(i)


if __name__ == "__main__":
    main()
0