結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
iad_2889
|
| 提出日時 | 2019-05-18 07:07:12 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
AC
|
| 実行時間 | 272 ms / 2,000 ms |
| + 53µs | |
| コード長 | 379 bytes |
| 記録 | |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 21,404 KB |
| 実行使用メモリ | 22,140 KB |
| 最終ジャッジ日時 | 2026-08-29 08:20:33 |
| 合計ジャッジ時間 | 4,693 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
def next_player(num):
current = 0
while True:
yield current
current+=1
current%=num
N = int(input())
np = next_player(N)
plays = map(int,[input() for x in range(N)])
k_score = 0
k_rank = 1
for play in plays:
current = next(np)
if current:
if play > k_score:
k_rank+=1
else:
k_score = play
print(k_rank)
iad_2889