結果

問題 No.504 ゲーム大会(ランキング)
ユーザー caleicalei
提出日時 2020-01-28 23:51:02
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 264 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 10,500 KB
実行使用メモリ 12,300 KB
最終ジャッジ日時 2023-10-13 20:59:34
合計ジャッジ時間 4,325 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,888 KB
testcase_01 AC 15 ms
7,740 KB
testcase_02 AC 15 ms
7,864 KB
testcase_03 AC 15 ms
7,976 KB
testcase_04 AC 16 ms
7,792 KB
testcase_05 AC 16 ms
7,740 KB
testcase_06 AC 15 ms
7,848 KB
testcase_07 AC 263 ms
12,056 KB
testcase_08 AC 256 ms
12,068 KB
testcase_09 AC 256 ms
12,124 KB
testcase_10 AC 252 ms
12,092 KB
testcase_11 AC 264 ms
12,072 KB
testcase_12 AC 259 ms
12,096 KB
testcase_13 AC 253 ms
12,300 KB
testcase_14 AC 257 ms
12,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.504 ゲーム大会(ランキング) 2020/01/28

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

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