結果

問題 No.2210 equence Squence Seuence
ユーザー ikomaikoma
提出日時 2023-02-10 22:12:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 390 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,292 KB
実行使用メモリ 115,220 KB
最終ジャッジ日時 2023-09-21 23:28:02
合計ジャッジ時間 5,343 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,376 KB
testcase_01 AC 75 ms
71,440 KB
testcase_02 AC 69 ms
71,380 KB
testcase_03 AC 103 ms
84,192 KB
testcase_04 WA -
testcase_05 AC 108 ms
91,292 KB
testcase_06 AC 103 ms
88,552 KB
testcase_07 AC 136 ms
104,924 KB
testcase_08 AC 69 ms
71,260 KB
testcase_09 AC 68 ms
71,568 KB
testcase_10 AC 69 ms
71,336 KB
testcase_11 AC 69 ms
71,304 KB
testcase_12 AC 69 ms
71,452 KB
testcase_13 AC 144 ms
110,868 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 144 ms
111,148 KB
testcase_17 WA -
testcase_18 AC 69 ms
71,368 KB
testcase_19 AC 70 ms
71,392 KB
testcase_20 AC 68 ms
71,396 KB
testcase_21 AC 81 ms
71,252 KB
testcase_22 WA -
testcase_23 AC 125 ms
107,148 KB
testcase_24 AC 113 ms
99,188 KB
testcase_25 AC 120 ms
103,520 KB
testcase_26 AC 138 ms
115,220 KB
testcase_27 AC 96 ms
85,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,K=map(int,input().split())
A=list(map(int,input().split()))
k=0
for i in range(N-1):
    if A[i]>=A[i+1]:
        k+=1
    if k==K:
        ans=A[:i]+A[i+1:]
        print(*ans)
        exit()
k=0
K=N-K+1
for i in range(N-1):
    if A[i]<=A[i+1]:
        k+=1
    if k==K:
        ans=A[:i]+A[i+1:]
        print(*ans)
        exit()
print(*A[:-1])
0