結果

問題 No.504 ゲーム大会(ランキング)
ユーザー GrayCoder
提出日時 2018-08-02 22:41:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,624 KB
最終ジャッジ日時 2024-09-19 17:14:22
合計ジャッジ時間 1,834 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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