結果

問題 No.2210 equence Squence Seuence
ユーザー tktk_snsntktk_snsn
提出日時 2023-02-11 11:20:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 30,656 KB
最終ジャッジ日時 2023-09-22 09:41:21
合計ジャッジ時間 4,468 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,468 KB
testcase_01 AC 17 ms
8,492 KB
testcase_02 AC 17 ms
8,528 KB
testcase_03 AC 57 ms
13,356 KB
testcase_04 WA -
testcase_05 AC 87 ms
16,828 KB
testcase_06 AC 79 ms
15,900 KB
testcase_07 AC 172 ms
28,348 KB
testcase_08 AC 18 ms
8,424 KB
testcase_09 AC 17 ms
8,628 KB
testcase_10 AC 17 ms
8,620 KB
testcase_11 WA -
testcase_12 AC 17 ms
8,568 KB
testcase_13 AC 208 ms
30,200 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 213 ms
30,328 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 17 ms
8,556 KB
testcase_20 AC 17 ms
8,472 KB
testcase_21 AC 17 ms
8,572 KB
testcase_22 WA -
testcase_23 AC 168 ms
27,280 KB
testcase_24 AC 129 ms
22,468 KB
testcase_25 AC 150 ms
24,988 KB
testcase_26 AC 197 ms
30,656 KB
testcase_27 AC 65 ms
14,580 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque


N, K = map(int, input().split())
A = list(map(int, input().split()))

D = deque([N-1])
for i in reversed(range(N-1)):
    if A[i] > A[i+1]:
        D.appendleft(i)
    else:
        D.append(i)

del A[D[K-1]]
print(*A)
0