結果

問題 No.2210 equence Squence Seuence
ユーザー shobonvipshobonvip
提出日時 2023-02-10 21:41:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 82,276 KB
実行使用メモリ 141,404 KB
最終ジャッジ日時 2024-07-07 15:54:00
合計ジャッジ時間 4,206 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,536 KB
testcase_01 AC 42 ms
52,564 KB
testcase_02 AC 38 ms
53,360 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 87 ms
94,328 KB
testcase_07 AC 133 ms
127,068 KB
testcase_08 WA -
testcase_09 AC 38 ms
52,668 KB
testcase_10 AC 39 ms
52,076 KB
testcase_11 AC 39 ms
52,188 KB
testcase_12 AC 38 ms
52,208 KB
testcase_13 AC 144 ms
123,120 KB
testcase_14 AC 147 ms
123,056 KB
testcase_15 AC 147 ms
122,860 KB
testcase_16 AC 147 ms
122,572 KB
testcase_17 WA -
testcase_18 AC 39 ms
52,308 KB
testcase_19 AC 38 ms
53,388 KB
testcase_20 WA -
testcase_21 AC 38 ms
51,952 KB
testcase_22 WA -
testcase_23 AC 125 ms
130,620 KB
testcase_24 AC 107 ms
115,376 KB
testcase_25 AC 118 ms
123,736 KB
testcase_26 AC 139 ms
141,404 KB
testcase_27 AC 81 ms
91,204 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
a = list(map(int,input().split()))
v = []
w = []
for i in range(n-1):
	if a[i] < a[i+1]:
		w.append(i)
	else:
		v.append(i)

r = v + [n-1] + w[::-1]
ans = []
for i in range(n):
	if r[k-1] == i: continue
	ans.append(a[i])
print(*ans)
0