結果

問題 No.2210 equence Squence Seuence
ユーザー shobonvipshobonvip
提出日時 2023-02-10 21:41:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 606 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 130,892 KB
最終ジャッジ日時 2023-09-21 22:48:33
合計ジャッジ時間 5,793 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,148 KB
testcase_01 AC 70 ms
71,200 KB
testcase_02 AC 71 ms
71,120 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 113 ms
95,540 KB
testcase_07 AC 156 ms
114,444 KB
testcase_08 WA -
testcase_09 AC 72 ms
71,112 KB
testcase_10 AC 72 ms
71,108 KB
testcase_11 AC 71 ms
71,128 KB
testcase_12 AC 71 ms
71,148 KB
testcase_13 AC 172 ms
117,152 KB
testcase_14 AC 175 ms
118,716 KB
testcase_15 AC 174 ms
118,744 KB
testcase_16 AC 170 ms
117,176 KB
testcase_17 WA -
testcase_18 AC 70 ms
71,228 KB
testcase_19 AC 71 ms
71,060 KB
testcase_20 WA -
testcase_21 AC 73 ms
70,820 KB
testcase_22 WA -
testcase_23 AC 154 ms
130,892 KB
testcase_24 AC 135 ms
116,728 KB
testcase_25 AC 148 ms
124,376 KB
testcase_26 AC 166 ms
124,904 KB
testcase_27 AC 111 ms
92,072 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