結果
問題 |
No.711 競技レーティング単調増加
|
ユーザー |
![]() |
提出日時 | 2025-04-15 22:59:17 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 398 ms |
コンパイル使用メモリ | 81,544 KB |
実行使用メモリ | 106,964 KB |
最終ジャッジ日時 | 2025-04-15 23:00:52 |
合計ジャッジ時間 | 5,563 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 27 |
ソースコード
import bisect n = int(input()) A = list(map(int, input().split())) tails = [] for x in A: idx = bisect.bisect_left(tails, x) if idx == len(tails): tails.append(x) else: tails[idx] = x print(n - len(tails))