結果
問題 | No.2774 Wake up Record 2 |
ユーザー |
👑 |
提出日時 | 2024-06-07 22:36:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 118 ms / 2,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 91,904 KB |
最終ジャッジ日時 | 2024-12-26 08:48:51 |
合計ジャッジ時間 | 2,807 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 |
ソースコード
import sys n, k = [int(x) for x in input().split()] a = [int(x) for x in input().split()] b = sorted(a) b.append(10 ** 10) x = b[k-1] c = [] for i in range(1, n): if a[i] > x and a[i-1] <= x: c.append(i + 1) print(x, file=sys.stderr) print(len(c)) print(*c)