結果
問題 |
No.365 ジェンガソート
|
ユーザー |
![]() |
提出日時 | 2020-04-10 23:34:44 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 233 bytes |
コンパイル時間 | 142 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 20,756 KB |
最終ジャッジ日時 | 2024-09-16 02:49:44 |
合計ジャッジ時間 | 3,990 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 25 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() import bisect n=int(input()) A=[int(i) for i in input().split()] L=[] for a in A: if not L or a>L[-1]: L.append(a) else: L[bisect.bisect_left(L,a)]=a print(n-len(L))