結果

問題 No.2210 equence Squence Seuence
ユーザー coder_So_heycoder_So_hey
提出日時 2023-02-10 21:53:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 365 bytes
コンパイル時間 496 ms
コンパイル使用メモリ 86,936 KB
実行使用メモリ 120,420 KB
最終ジャッジ日時 2023-09-21 23:03:14
合計ジャッジ時間 6,600 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,264 KB
testcase_01 AC 69 ms
71,152 KB
testcase_02 AC 69 ms
71,212 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 108 ms
88,216 KB
testcase_07 AC 149 ms
110,844 KB
testcase_08 WA -
testcase_09 AC 76 ms
71,380 KB
testcase_10 AC 75 ms
71,368 KB
testcase_11 AC 75 ms
71,380 KB
testcase_12 AC 75 ms
71,092 KB
testcase_13 AC 161 ms
107,372 KB
testcase_14 AC 161 ms
107,356 KB
testcase_15 AC 160 ms
107,172 KB
testcase_16 AC 161 ms
107,316 KB
testcase_17 WA -
testcase_18 AC 75 ms
71,248 KB
testcase_19 AC 75 ms
71,048 KB
testcase_20 WA -
testcase_21 AC 75 ms
71,140 KB
testcase_22 WA -
testcase_23 AC 142 ms
110,868 KB
testcase_24 AC 130 ms
103,152 KB
testcase_25 AC 131 ms
107,136 KB
testcase_26 AC 148 ms
120,420 KB
testcase_27 AC 101 ms
86,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
A = list(map(int, input().split()))

order = []
minimum = 1
maximum = N

for i in range(N - 1):
    if A[i] < A[i + 1]:
        order.append(maximum)
        maximum -= 1
    else:
        order.append(minimum)
        minimum += 1
order.append(maximum)

for i in range(N):
    if order[i] != K:
        print(f"{A[i]}", end = " ")
0