結果
| 問題 | No.2774 Wake up Record 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 21:23:39 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 81 ms / 2,000 ms |
| + 618µs | |
| コード長 | 509 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 83,120 KB |
| 実行使用メモリ | 103,736 KB |
| 最終ジャッジ日時 | 2026-10-08 04:54:15 |
| 合計ジャッジ時間 | 2,984 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#
#alist = []
n,k = map(int,input().split())
alist = list(map(int,input().split()))
blist = alist[:]
blist.sort()
x = blist[k-1]
#for i in range(n):
# alist.append(list(map(int,input().split())))
ans = []
for i in range(n-1):
if alist[i] <= x and alist[i+1] > x:
ans.append(i+2)
print(len(ans))
print(*ans)