結果
| 問題 | 
                            No.2774 Wake up Record 2
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2024-06-07 21:54:23 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 119 ms / 2,000 ms | 
| コード長 | 181 bytes | 
| コンパイル時間 | 201 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 21,648 KB | 
| 最終ジャッジ日時 | 2024-12-26 07:50:43 | 
| 合計ジャッジ時間 | 2,400 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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)