結果

問題 No.504 ゲーム大会(ランキング)
ユーザー _KingdomOfMoray
提出日時 2019-11-27 16:07:48
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 341 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 14,976 KB
最終ジャッジ日時 2024-11-08 10:56:18
合計ジャッジ時間 4,004 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = [int(input()) for i in range(n)]

rank = 1
k_score = a[0]

for i in range(n):
    if i == 0:
        print(rank)
    else:
        if a[i] > k_score:
            rank += 1
        print(rank)
0