結果

問題 No.504 ゲーム大会(ランキング)
ユーザー トミートミー
提出日時 2024-04-14 03:00:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 191 ms / 2,000 ms
コード長 281 bytes
コンパイル時間 366 ms
コンパイル使用メモリ 82,832 KB
実行使用メモリ 79,976 KB
最終ジャッジ日時 2024-04-14 03:00:28
合計ジャッジ時間 3,289 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,652 KB
testcase_01 AC 36 ms
52,948 KB
testcase_02 AC 38 ms
53,444 KB
testcase_03 AC 37 ms
53,424 KB
testcase_04 AC 37 ms
53,428 KB
testcase_05 AC 36 ms
52,236 KB
testcase_06 AC 49 ms
52,916 KB
testcase_07 AC 191 ms
79,976 KB
testcase_08 AC 123 ms
79,636 KB
testcase_09 AC 126 ms
79,720 KB
testcase_10 AC 121 ms
79,772 KB
testcase_11 AC 119 ms
79,516 KB
testcase_12 AC 126 ms
79,388 KB
testcase_13 AC 118 ms
79,520 KB
testcase_14 AC 122 ms
79,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())
    k = int(input())
    rank = 1
    result = [1]
    for i in range(1, n):
        a = int(input())
        if k < a:
            rank += 1
        result.append(rank)
    for i in result:
        print(i)


if __name__ == "__main__":
    main()
0