結果

問題 No.2210 equence Squence Seuence
ユーザー tassei903tassei903
提出日時 2023-02-11 01:48:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 565 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 86,940 KB
実行使用メモリ 131,056 KB
最終ジャッジ日時 2023-09-22 02:04:21
合計ジャッジ時間 5,941 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,168 KB
testcase_01 AC 72 ms
71,432 KB
testcase_02 AC 73 ms
71,380 KB
testcase_03 AC 111 ms
86,236 KB
testcase_04 WA -
testcase_05 AC 117 ms
96,912 KB
testcase_06 AC 109 ms
93,040 KB
testcase_07 AC 150 ms
117,796 KB
testcase_08 AC 74 ms
71,228 KB
testcase_09 AC 73 ms
71,268 KB
testcase_10 AC 74 ms
71,344 KB
testcase_11 WA -
testcase_12 AC 73 ms
71,348 KB
testcase_13 AC 165 ms
107,380 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 166 ms
107,420 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 72 ms
71,556 KB
testcase_20 AC 72 ms
71,552 KB
testcase_21 AC 73 ms
71,296 KB
testcase_22 WA -
testcase_23 AC 143 ms
120,720 KB
testcase_24 AC 129 ms
110,512 KB
testcase_25 AC 137 ms
115,496 KB
testcase_26 AC 156 ms
131,056 KB
testcase_27 AC 103 ms
89,524 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

n, k = na()

a = na()
l = []
r = []
for i in range(n-1):
    if a[i] > a[i+1]:
        l.append(i)
    else:
        r.append(i)
ans = l + [n-1] + r[::-1]

x = ans[k-1]
print(*(a[:x] + a[x+1:]))
#print(*sorted([a[:i] + a[i+1:] for i in range(n)])[k-1])
0