結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
![]() |
提出日時 | 2019-11-27 15:58:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 135 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 33,536 KB |
最終ジャッジ日時 | 2024-11-08 10:53:08 |
合計ジャッジ時間 | 4,613 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 TLE * 1 -- * 7 |
ソースコード
n = int(input()) a = [int(input()) for i in range(n)] b = [] for i in range(n): cur = [] cur.append(i) cur.append(a[i]) b.append(cur) for i in range(n): cur = b[:i+1] sorted_cur = sorted(cur, reverse=True, key=lambda x:x[1]) for j in range(len(sorted_cur)): if sorted_cur[j][0] == 0: print(j+1) break