結果
| 問題 | No.2774 Wake up Record 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:54:23 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 145 ms / 2,000 ms |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 437 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 25,368 KB |
| 最終ジャッジ日時 | 2026-06-01 04:55:48 |
| 合計ジャッジ時間 | 4,154 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
N, K = map(int, input().split()) A = [int(a) for a in input().split()] S = sorted(A) j = S[K-1] B = [i for i in range(2, N+1) if A[i-2] <= j and A[i-1] > j] print(len(B)) print(*B)