結果
問題 |
No.711 競技レーティング単調増加
|
ユーザー |
![]() |
提出日時 | 2025-06-12 13:52:19 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 274 bytes |
コンパイル時間 | 363 ms |
コンパイル使用メモリ | 82,476 KB |
実行使用メモリ | 107,472 KB |
最終ジャッジ日時 | 2025-06-12 13:53:22 |
合計ジャッジ時間 | 6,058 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 27 |
ソースコード
import bisect n = int(input()) a = list(map(int, input().split())) tails = [] for x in a: j = bisect.bisect_right(tails, x) if j == len(tails): if not tails or x > tails[-1]: tails.append(x) else: tails[j] = x print(n - len(tails))