結果

問題 No.504 ゲーム大会(ランキング)
ユーザー kichirb3kichirb3
提出日時 2018-03-03 13:07:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 100 ms / 2,000 ms
コード長 462 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,572 KB
実行使用メモリ 8,572 KB
最終ジャッジ日時 2023-09-06 05:46:17
合計ジャッジ時間 2,960 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,864 KB
testcase_01 AC 15 ms
7,788 KB
testcase_02 AC 15 ms
7,916 KB
testcase_03 AC 15 ms
7,832 KB
testcase_04 AC 15 ms
7,844 KB
testcase_05 AC 15 ms
7,964 KB
testcase_06 AC 15 ms
7,916 KB
testcase_07 AC 99 ms
8,428 KB
testcase_08 AC 98 ms
8,336 KB
testcase_09 AC 100 ms
8,304 KB
testcase_10 AC 95 ms
8,388 KB
testcase_11 AC 96 ms
8,284 KB
testcase_12 AC 97 ms
8,344 KB
testcase_13 AC 92 ms
8,572 KB
testcase_14 AC 93 ms
8,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
"""
No.504 ゲーム大会(ランキング)
https://yukicoder.me/problems/no/504

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    N = int(input())
    score_K = int(input())
    current_rank = 1
    print(current_rank)

    for _ in range(N-1):
        s = int(input())
        if s > score_K:
            current_rank += 1
        print(current_rank)


if __name__ == '__main__':
    main(sys.argv[1:])
0