結果
問題 |
No.2803 Bocching Star
|
ユーザー |
![]() |
提出日時 | 2024-09-25 13:30:31 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 804 ms / 2,000 ms |
コード長 | 323 bytes |
コンパイル時間 | 254 ms |
コンパイル使用メモリ | 82,184 KB |
実行使用メモリ | 130,512 KB |
最終ジャッジ日時 | 2024-09-25 13:30:50 |
合計ジャッジ時間 | 18,717 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 35 |
ソースコード
n,s=map(int,input().split()) P=list(map(int,input().split())) P=[[p,i] for i,p in enumerate(P)] P.sort() ans=[] for i in range(n): p=P[i][0] pp=P[i-1][0] if i>0 else -1<<60 np=P[i+1][0] if i<n-1 else 1<<60 if s<p-pp and s<np-p: ans.append(P[i][1]+1) print(len(ans)) print(*sorted(ans))