結果

問題 No.2774 Wake up Record 2
ユーザー 2000 Ekiben2000 Ekiben
提出日時 2024-06-07 22:03:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 81,888 KB
実行使用メモリ 92,220 KB
最終ジャッジ日時 2024-06-07 22:03:25
合計ジャッジ時間 1,824 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
51,900 KB
testcase_01 AC 33 ms
51,840 KB
testcase_02 AC 33 ms
52,144 KB
testcase_03 AC 34 ms
52,632 KB
testcase_04 AC 35 ms
52,248 KB
testcase_05 AC 40 ms
53,096 KB
testcase_06 AC 37 ms
52,748 KB
testcase_07 AC 33 ms
53,704 KB
testcase_08 AC 32 ms
53,132 KB
testcase_09 AC 39 ms
61,776 KB
testcase_10 AC 34 ms
53,036 KB
testcase_11 AC 50 ms
69,252 KB
testcase_12 AC 45 ms
67,028 KB
testcase_13 AC 67 ms
81,072 KB
testcase_14 AC 62 ms
84,992 KB
testcase_15 AC 64 ms
84,680 KB
testcase_16 AC 61 ms
85,968 KB
testcase_17 AC 71 ms
92,220 KB
testcase_18 AC 59 ms
81,692 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)))
else:
    print()  
0