結果

問題 No.504 ゲーム大会(ランキング)
ユーザー MarioMario
提出日時 2018-05-19 07:47:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 159 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,524 KB
実行使用メモリ 17,180 KB
最終ジャッジ日時 2023-09-10 23:38:23
合計ジャッジ時間 4,657 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,236 KB
testcase_01 AC 16 ms
7,780 KB
testcase_02 AC 16 ms
7,852 KB
testcase_03 AC 16 ms
7,768 KB
testcase_04 AC 16 ms
7,756 KB
testcase_05 AC 16 ms
7,844 KB
testcase_06 AC 16 ms
7,800 KB
testcase_07 TLE -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
k = int(input())
a = [k] + [int(input()) for _ in range(n-1)]
print(*[sorted(a[:i+1], reverse=True).index(k) + 1 for i in range(n)], sep="\n")
0