結果

問題 No.2210 equence Squence Seuence
ユーザー minimumminimum
提出日時 2023-02-10 21:55:43
言語 PyPy3
(7.3.13)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 87,132 KB
実行使用メモリ 129,468 KB
最終ジャッジ日時 2023-09-21 23:07:33
合計ジャッジ時間 5,367 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,344 KB
testcase_01 AC 69 ms
71,340 KB
testcase_02 AC 69 ms
71,260 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 70 ms
71,364 KB
testcase_19 AC 68 ms
71,240 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 139 ms
119,020 KB
testcase_24 AC 124 ms
107,856 KB
testcase_25 AC 132 ms
113,444 KB
testcase_26 AC 158 ms
129,468 KB
testcase_27 AC 104 ms
89,008 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
A = list(map(int, input().split()))
L, R = [0], []
for i in range(1, N):
    if A[i - 1] <= A[i]:
        L.append(i)
    else:
        R.append(i)
L += R
pos = L[K - 1]
ans = A[:pos] + A[pos+1:]
print(*ans)
0