結果

問題 No.2210 equence Squence Seuence
ユーザー flygonflygon
提出日時 2023-02-10 22:14:49
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 346 bytes
コンパイル時間 317 ms
コンパイル使用メモリ 87,024 KB
実行使用メモリ 114,916 KB
最終ジャッジ日時 2023-09-21 23:30:02
合計ジャッジ時間 5,375 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,376 KB
testcase_01 AC 74 ms
71,388 KB
testcase_02 AC 72 ms
71,604 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 110 ms
90,896 KB
testcase_07 AC 148 ms
113,104 KB
testcase_08 WA -
testcase_09 AC 75 ms
71,516 KB
testcase_10 AC 75 ms
71,292 KB
testcase_11 AC 75 ms
71,252 KB
testcase_12 AC 77 ms
71,444 KB
testcase_13 AC 168 ms
107,652 KB
testcase_14 AC 164 ms
107,376 KB
testcase_15 AC 164 ms
107,524 KB
testcase_16 AC 163 ms
107,312 KB
testcase_17 WA -
testcase_18 AC 78 ms
71,280 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 75 ms
71,564 KB
testcase_22 WA -
testcase_23 AC 141 ms
114,916 KB
testcase_24 AC 132 ms
106,224 KB
testcase_25 AC 140 ms
110,708 KB
testcase_26 AC 152 ms
107,156 KB
testcase_27 AC 107 ms
87,988 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int,input().split())
a = list(map(int,input().split()))

ans = -1
for i in range(n-1):
  x,y = a[i], a[i+1]
  if k == 1 and y < x:
    ans = i
  elif y <= x:
    k -= 1
  if x < y and k == n-i:
    ans = i
  if ans != -1:
    break
  
if ans == -1:
  ans = n-1

b = []
for i in range(n):
  if i != ans:
    b.append(a[i])
  
print(*b)

0