結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
|
提出日時 | 2018-08-02 22:34:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 162 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 23,548 KB |
最終ジャッジ日時 | 2024-09-19 17:14:20 |
合計ジャッジ時間 | 2,015 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 WA * 8 |
ソースコード
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()