結果

問題 No.2210 equence Squence Seuence
ユーザー ニックネームニックネーム
提出日時 2023-02-10 21:35:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 30,752 KB
最終ジャッジ日時 2023-09-21 22:39:22
合計ジャッジ時間 5,018 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 19 ms
8,356 KB
testcase_01 AC 19 ms
8,416 KB
testcase_02 AC 19 ms
8,436 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 81 ms
15,808 KB
testcase_07 AC 179 ms
28,240 KB
testcase_08 WA -
testcase_09 AC 18 ms
8,420 KB
testcase_10 AC 19 ms
8,448 KB
testcase_11 AC 19 ms
8,508 KB
testcase_12 AC 19 ms
8,424 KB
testcase_13 AC 223 ms
30,172 KB
testcase_14 AC 217 ms
30,316 KB
testcase_15 AC 221 ms
30,212 KB
testcase_16 AC 221 ms
30,332 KB
testcase_17 WA -
testcase_18 AC 19 ms
8,400 KB
testcase_19 AC 18 ms
8,360 KB
testcase_20 WA -
testcase_21 AC 19 ms
8,440 KB
testcase_22 WA -
testcase_23 AC 173 ms
27,124 KB
testcase_24 AC 134 ms
22,468 KB
testcase_25 AC 155 ms
24,996 KB
testcase_26 AC 205 ms
30,752 KB
testcase_27 AC 72 ms
14,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
n,k = map(int,input().split())
a = list(map(int,input().split()))
dq = deque([n-1])
for i in range(n-2,-1,-1):
    if a[i]<a[i+1]:dq.append(i)
    else: dq.appendleft(i)
a.pop(dq[k-1])
print(*a)
0