結果

問題 No.2210 equence Squence Seuence
ユーザー ShirotsumeShirotsume
提出日時 2023-02-11 00:01:10
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 87,352 KB
実行使用メモリ 121,860 KB
最終ジャッジ日時 2023-09-22 00:50:53
合計ジャッジ時間 6,341 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
71,732 KB
testcase_01 AC 97 ms
71,604 KB
testcase_02 AC 100 ms
71,704 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 146 ms
90,804 KB
testcase_07 AC 186 ms
114,936 KB
testcase_08 WA -
testcase_09 AC 102 ms
71,600 KB
testcase_10 AC 102 ms
71,732 KB
testcase_11 AC 98 ms
71,704 KB
testcase_12 AC 101 ms
71,576 KB
testcase_13 AC 196 ms
119,600 KB
testcase_14 AC 199 ms
121,420 KB
testcase_15 AC 197 ms
121,772 KB
testcase_16 AC 199 ms
119,844 KB
testcase_17 WA -
testcase_18 AC 97 ms
71,876 KB
testcase_19 AC 100 ms
71,428 KB
testcase_20 WA -
testcase_21 AC 99 ms
71,736 KB
testcase_22 WA -
testcase_23 AC 173 ms
113,064 KB
testcase_24 AC 160 ms
103,692 KB
testcase_25 AC 165 ms
108,636 KB
testcase_26 AC 184 ms
121,860 KB
testcase_27 AC 133 ms
86,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from collections import deque, Counter
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353

n, k = mi()

a = li()

q = deque([n - 1])

for i in range(n - 2, -1, -1):
    if a[i] < a[i+1]:
        q.append(i)
    else:
        q.appendleft(i)
print(*(a[:q[k-1]] + a[q[k-1]+1:]))
    
0