結果

問題 No.504 ゲーム大会(ランキング)
ユーザー mokraimokrai
提出日時 2017-11-12 21:54:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 473 ms / 2,000 ms
コード長 252 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 7,936 KB
最終ジャッジ日時 2023-08-16 11:01:24
合計ジャッジ時間 6,390 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,860 KB
testcase_01 AC 17 ms
7,808 KB
testcase_02 AC 17 ms
7,816 KB
testcase_03 AC 16 ms
7,824 KB
testcase_04 AC 18 ms
7,816 KB
testcase_05 AC 18 ms
7,740 KB
testcase_06 AC 16 ms
7,820 KB
testcase_07 AC 465 ms
7,812 KB
testcase_08 AC 465 ms
7,936 KB
testcase_09 AC 462 ms
7,868 KB
testcase_10 AC 465 ms
7,860 KB
testcase_11 AC 468 ms
7,796 KB
testcase_12 AC 457 ms
7,820 KB
testcase_13 AC 455 ms
7,872 KB
testcase_14 AC 473 ms
7,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    N = int(input())
    k_score = int(input())
    rank = 1
    print(rank)
    for i in range(N-1):
        score = int(input())
        if score > k_score:
            rank += 1
        print(rank)

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