結果

問題 No.504 ゲーム大会(ランキング)
ユーザー GrayCoderGrayCoder
提出日時 2018-08-02 22:41:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 161 ms
コンパイル使用メモリ 11,864 KB
実行使用メモリ 21,380 KB
最終ジャッジ日時 2023-10-19 21:10:22
合計ジャッジ時間 1,976 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,968 KB
testcase_01 AC 29 ms
9,968 KB
testcase_02 AC 30 ms
9,968 KB
testcase_03 AC 29 ms
9,968 KB
testcase_04 AC 29 ms
9,968 KB
testcase_05 AC 29 ms
9,968 KB
testcase_06 AC 29 ms
9,968 KB
testcase_07 AC 84 ms
20,684 KB
testcase_08 AC 83 ms
20,684 KB
testcase_09 AC 83 ms
20,684 KB
testcase_10 AC 80 ms
20,684 KB
testcase_11 AC 85 ms
20,684 KB
testcase_12 AC 81 ms
21,380 KB
testcase_13 AC 77 ms
21,380 KB
testcase_14 AC 83 ms
20,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from sys import stdin, stdout
input = lambda: stdin.readline().rstrip()
write = stdout.write

def main():
    N = int(input())
    A = list(map(int, stdin.read().splitlines()))

    rank = 1
    for ai in A:
        if A[0] < ai:
            rank += 1
        write(str(rank) + '\n')

main()
0