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