結果

問題 No.2774 Wake up Record 2
ユーザー あじゃじゃ
提出日時 2024-06-07 21:38:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 209 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 95,872 KB
最終ジャッジ日時 2024-12-26 07:23:41
合計ジャッジ時間 2,635 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A=list(map(int,input().split()))
Asort=sorted(A)
flg=Asort[K-1]
ans=[]
for i in range(1,N):
    if A[i-1]<=flg and A[i]>flg:
        ans.append(i+1)
print(len(ans))
print(*ans)

0