結果
| 問題 |
No.711 競技レーティング単調増加
|
| コンテスト | |
| ユーザー |
lam6er
|
| 提出日時 | 2025-03-31 17:26:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 230 bytes |
| コンパイル時間 | 322 ms |
| コンパイル使用メモリ | 82,700 KB |
| 実行使用メモリ | 107,320 KB |
| 最終ジャッジ日時 | 2025-03-31 17:27:47 |
| 合計ジャッジ時間 | 6,126 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 27 |
ソースコード
import bisect
n = int(input())
A = list(map(int, input().split()))
tail = []
for x in A:
idx = bisect.bisect_left(tail, x)
if idx == len(tail):
tail.append(x)
else:
tail[idx] = x
print(n - len(tail))
lam6er