結果

問題 No.504 ゲーム大会(ランキング)
ユーザー DexctersuDexctersu
提出日時 2017-12-10 21:02:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 279 ms / 2,000 ms
コード長 187 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 12,340 KB
最終ジャッジ日時 2023-08-20 09:57:51
合計ジャッジ時間 4,274 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,888 KB
testcase_01 AC 15 ms
7,872 KB
testcase_02 AC 15 ms
7,752 KB
testcase_03 AC 16 ms
7,796 KB
testcase_04 AC 15 ms
7,848 KB
testcase_05 AC 16 ms
7,804 KB
testcase_06 AC 15 ms
7,904 KB
testcase_07 AC 279 ms
12,060 KB
testcase_08 AC 273 ms
12,116 KB
testcase_09 AC 274 ms
12,096 KB
testcase_10 AC 271 ms
12,184 KB
testcase_11 AC 271 ms
12,124 KB
testcase_12 AC 277 ms
12,340 KB
testcase_13 AC 265 ms
12,228 KB
testcase_14 AC 273 ms
12,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=[]
rank=1
for _ in range(n):
    a.append(int(input()))
print(1)
for i in range(1,n):
    if a[0]<a[i]:
        rank+=1
        print(rank)
    else:
        print(rank)
0