結果

問題 No.504 ゲーム大会(ランキング)
ユーザー DexctersuDexctersu
提出日時 2018-01-12 14:43:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 301 ms / 2,000 ms
コード長 224 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 16,068 KB
最終ジャッジ日時 2023-08-25 15:33:23
合計ジャッジ時間 4,627 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,864 KB
testcase_01 AC 15 ms
7,832 KB
testcase_02 AC 16 ms
7,868 KB
testcase_03 AC 15 ms
7,800 KB
testcase_04 AC 16 ms
7,864 KB
testcase_05 AC 16 ms
7,824 KB
testcase_06 AC 15 ms
7,868 KB
testcase_07 AC 286 ms
14,824 KB
testcase_08 AC 293 ms
13,868 KB
testcase_09 AC 301 ms
14,756 KB
testcase_10 AC 286 ms
13,192 KB
testcase_11 AC 292 ms
15,492 KB
testcase_12 AC 288 ms
16,068 KB
testcase_13 AC 286 ms
13,104 KB
testcase_14 AC 294 ms
14,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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