結果

問題 No.504 ゲーム大会(ランキング)
ユーザー GrayCoderGrayCoder
提出日時 2018-08-02 22:34:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 324 bytes
コンパイル時間 237 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 24,048 KB
最終ジャッジ日時 2023-10-19 21:10:19
合計ジャッジ時間 2,309 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,976 KB
testcase_01 AC 29 ms
9,976 KB
testcase_02 AC 29 ms
9,976 KB
testcase_03 WA -
testcase_04 AC 29 ms
9,976 KB
testcase_05 AC 29 ms
9,976 KB
testcase_06 AC 29 ms
9,976 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 96 ms
24,028 KB
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

    ans = [0] * N
    rank = 1
    for i, ai in enumerate(A):
        if A[0] < ai:
            rank += 1
        ans[i] = rank
    print(*ans, sep='\n')

main()
0