結果

問題 No.504 ゲーム大会(ランキング)
ユーザー turner18_jpturner18_jp
提出日時 2017-10-08 13:50:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 276 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 515 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 12,268 KB
最終ジャッジ日時 2023-08-10 20:09:10
合計ジャッジ時間 4,111 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,848 KB
testcase_01 AC 15 ms
7,760 KB
testcase_02 AC 15 ms
7,808 KB
testcase_03 AC 15 ms
7,832 KB
testcase_04 AC 15 ms
7,756 KB
testcase_05 AC 15 ms
7,840 KB
testcase_06 AC 15 ms
7,776 KB
testcase_07 AC 276 ms
10,836 KB
testcase_08 AC 263 ms
10,052 KB
testcase_09 AC 251 ms
10,904 KB
testcase_10 AC 247 ms
9,236 KB
testcase_11 AC 262 ms
11,532 KB
testcase_12 AC 266 ms
12,268 KB
testcase_13 AC 248 ms
9,124 KB
testcase_14 AC 252 ms
10,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
k = int(input())
li = []
rank = 1
current_rank = [1]

for i in range(n - 1):
    score = int(input())
    if score <= k:
        current_rank.append(rank)
    else:
        rank += 1
        current_rank.append(rank)

for i in current_rank:
    print(i)
0