結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,512 KB
testcase_01 AC 71 ms
71,432 KB
testcase_02 AC 71 ms
71,296 KB
testcase_03 AC 96 ms
85,572 KB
testcase_04 WA -
testcase_05 AC 111 ms
95,568 KB
testcase_06 AC 108 ms
92,064 KB
testcase_07 AC 147 ms
115,388 KB
testcase_08 AC 73 ms
71,480 KB
testcase_09 AC 74 ms
71,280 KB
testcase_10 AC 71 ms
71,460 KB
testcase_11 WA -
testcase_12 AC 69 ms
71,332 KB
testcase_13 AC 155 ms
107,504 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 155 ms
107,424 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 69 ms
71,404 KB
testcase_20 AC 68 ms
71,488 KB
testcase_21 AC 69 ms
71,084 KB
testcase_22 WA -
testcase_23 AC 135 ms
119,112 KB
testcase_24 AC 123 ms
109,776 KB
testcase_25 AC 129 ms
114,016 KB
testcase_26 AC 147 ms
129,664 KB
testcase_27 AC 97 ms
89,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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