結果
| 問題 | No.504 ゲーム大会(ランキング) |
| コンテスト | |
| ユーザー |
iad_2889
|
| 提出日時 | 2019-05-18 07:07:12 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 258 ms / 2,000 ms |
| コード長 | 379 bytes |
| 記録 | |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 20,760 KB |
| 実行使用メモリ | 21,468 KB |
| 最終ジャッジ日時 | 2026-04-06 03:37:30 |
| 合計ジャッジ時間 | 3,971 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_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