結果
| 問題 |
No.2210 equence Squence Seuence
|
| コンテスト | |
| ユーザー |
coder_So_hey
|
| 提出日時 | 2023-02-10 21:53:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 365 bytes |
| コンパイル時間 | 592 ms |
| コンパイル使用メモリ | 82,128 KB |
| 実行使用メモリ | 119,928 KB |
| 最終ジャッジ日時 | 2024-07-07 16:06:34 |
| 合計ジャッジ時間 | 3,855 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 WA * 7 |
ソースコード
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 = " ")
coder_So_hey