結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
![]() |
提出日時 | 2019-05-18 07:07:12 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 360 ms / 2,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 256 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 18,048 KB |
最終ジャッジ日時 | 2024-09-17 06:06:01 |
合計ジャッジ時間 | 4,190 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
def next_player(num):current = 0while True:yield currentcurrent+=1current%=numN = int(input())np = next_player(N)plays = map(int,[input() for x in range(N)])k_score = 0k_rank = 1for play in plays:current = next(np)if current:if play > k_score:k_rank+=1else:k_score = playprint(k_rank)