結果

問題 No.2210 equence Squence Seuence
ユーザー tassei903tassei903
提出日時 2023-02-11 01:43:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 508 bytes
コンパイル時間 881 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 134,040 KB
最終ジャッジ日時 2023-09-22 02:00:38
合計ジャッジ時間 5,079 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,128 KB
testcase_01 AC 69 ms
71,496 KB
testcase_02 AC 73 ms
71,536 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 103 ms
93,192 KB
testcase_07 AC 141 ms
117,816 KB
testcase_08 WA -
testcase_09 AC 68 ms
71,412 KB
testcase_10 AC 68 ms
71,260 KB
testcase_11 AC 69 ms
71,664 KB
testcase_12 AC 69 ms
71,392 KB
testcase_13 AC 157 ms
107,400 KB
testcase_14 AC 161 ms
108,672 KB
testcase_15 AC 161 ms
108,352 KB
testcase_16 AC 159 ms
107,596 KB
testcase_17 WA -
testcase_18 AC 68 ms
71,448 KB
testcase_19 AC 68 ms
71,400 KB
testcase_20 WA -
testcase_21 AC 68 ms
71,396 KB
testcase_22 WA -
testcase_23 AC 139 ms
122,800 KB
testcase_24 AC 124 ms
110,568 KB
testcase_25 AC 131 ms
117,052 KB
testcase_26 AC 151 ms
134,040 KB
testcase_27 AC 98 ms
89,844 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:]))
0