結果

問題 No.2774 Wake up Record 2
ユーザー shobonvipshobonvip
提出日時 2024-06-07 21:22:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,768 KB
最終ジャッジ日時 2024-06-07 21:22:51
合計ジャッジ時間 1,812 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 AC 27 ms
10,624 KB
testcase_04 AC 27 ms
10,624 KB
testcase_05 AC 28 ms
10,624 KB
testcase_06 AC 28 ms
10,752 KB
testcase_07 AC 28 ms
10,624 KB
testcase_08 AC 27 ms
10,624 KB
testcase_09 AC 30 ms
11,008 KB
testcase_10 AC 32 ms
10,752 KB
testcase_11 AC 57 ms
14,060 KB
testcase_12 AC 41 ms
12,544 KB
testcase_13 AC 85 ms
17,812 KB
testcase_14 AC 86 ms
21,512 KB
testcase_15 AC 88 ms
21,768 KB
testcase_16 AC 76 ms
21,640 KB
testcase_17 AC 129 ms
21,512 KB
testcase_18 AC 74 ms
20,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, k = map(int,input().split())
a = list(map(int,input().split()))
b = a[::]
b.sort()
g = b[k-1]

c = []
for i in range(n-1):
	if a[i] <= g and a[i+1] > g:
		c.append(i+2)
print(len(c))
print(*c)
0