結果

問題 No.2774 Wake up Record 2
ユーザー 2000 Ekiben2000 Ekiben
提出日時 2024-06-07 22:01:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 301 bytes
コンパイル時間 215 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,652 KB
最終ジャッジ日時 2024-06-07 22:01:50
合計ジャッジ時間 2,138 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,752 KB
testcase_01 WA -
testcase_02 AC 32 ms
10,752 KB
testcase_03 AC 31 ms
10,752 KB
testcase_04 AC 31 ms
10,752 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 30 ms
10,880 KB
testcase_07 AC 30 ms
10,752 KB
testcase_08 AC 33 ms
10,752 KB
testcase_09 AC 35 ms
11,264 KB
testcase_10 AC 31 ms
10,752 KB
testcase_11 AC 57 ms
14,204 KB
testcase_12 AC 45 ms
12,672 KB
testcase_13 AC 91 ms
17,828 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 97 ms
21,652 KB
testcase_17 AC 110 ms
21,524 KB
testcase_18 AC 85 ms
20,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, K = map(int, input().split())
A = list(map(int, input().split()))    
sorted_A = sorted(A)
j = sorted_A[K - 1]
    
result = []
for k in range(2, N + 1):
    if A[k - 1] > j and A[k - 2] <= j:
       result.append(k)
    
print(len(result))
if len(result) > 0:
    print(" ".join(map(str, result)))
0