結果

問題 No.504 ゲーム大会(ランキング)
ユーザー tarotaro789tarotaro789
提出日時 2017-04-23 05:40:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 283 ms / 2,000 ms
コード長 199 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 12,280 KB
最終ジャッジ日時 2023-09-29 17:01:26
合計ジャッジ時間 3,510 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,948 KB
testcase_01 AC 15 ms
7,964 KB
testcase_02 AC 14 ms
7,800 KB
testcase_03 AC 14 ms
7,880 KB
testcase_04 AC 15 ms
7,772 KB
testcase_05 AC 15 ms
7,864 KB
testcase_06 AC 15 ms
7,832 KB
testcase_07 AC 279 ms
12,260 KB
testcase_08 AC 273 ms
12,256 KB
testcase_09 AC 283 ms
12,072 KB
testcase_10 AC 272 ms
12,060 KB
testcase_11 AC 276 ms
12,124 KB
testcase_12 AC 277 ms
12,220 KB
testcase_13 AC 267 ms
12,280 KB
testcase_14 AC 277 ms
12,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
lsp=[]
for i in range(n):
    lsp.append(int(input()))

cnt=1
if n==1:
    print(cnt)
else:
    for i in range(n):
        if lsp[0]<lsp[i]:
            cnt+=1
        print(cnt)
    
0