結果

問題 No.504 ゲーム大会(ランキング)
ユーザー akitsugu777akitsugu777
提出日時 2019-11-22 14:19:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 341 ms / 2,000 ms
コード長 158 bytes
コンパイル時間 198 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 14,720 KB
最終ジャッジ日時 2024-04-19 10:13:16
合計ジャッジ時間 4,412 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,496 KB
testcase_01 AC 25 ms
10,496 KB
testcase_02 AC 26 ms
10,496 KB
testcase_03 AC 30 ms
10,496 KB
testcase_04 AC 27 ms
10,624 KB
testcase_05 AC 25 ms
10,496 KB
testcase_06 AC 25 ms
10,368 KB
testcase_07 AC 329 ms
13,312 KB
testcase_08 AC 325 ms
12,416 KB
testcase_09 AC 329 ms
13,440 KB
testcase_10 AC 319 ms
11,776 KB
testcase_11 AC 329 ms
14,080 KB
testcase_12 AC 339 ms
14,720 KB
testcase_13 AC 323 ms
11,520 KB
testcase_14 AC 341 ms
13,440 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
K = int(input())

p = 1
L = [1]
for _ in range(N-1):
    a = int(input())
    if a > K:
        p += 1
    L += [p]

for i in L:
    print(i)
0