結果
問題 | No.2803 Bocching Star |
ユーザー | moon17 |
提出日時 | 2024-07-13 17:53:20 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 683 ms / 2,000 ms |
コード長 | 233 bytes |
コンパイル時間 | 357 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 117,824 KB |
最終ジャッジ日時 | 2024-07-13 17:53:38 |
合計ジャッジ時間 | 17,211 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
52,108 KB |
testcase_01 | AC | 39 ms
52,016 KB |
testcase_02 | AC | 41 ms
52,420 KB |
testcase_03 | AC | 108 ms
79,240 KB |
testcase_04 | AC | 543 ms
115,944 KB |
testcase_05 | AC | 305 ms
101,840 KB |
testcase_06 | AC | 92 ms
77,704 KB |
testcase_07 | AC | 219 ms
90,432 KB |
testcase_08 | AC | 146 ms
84,244 KB |
testcase_09 | AC | 607 ms
117,824 KB |
testcase_10 | AC | 655 ms
117,324 KB |
testcase_11 | AC | 594 ms
115,276 KB |
testcase_12 | AC | 199 ms
88,472 KB |
testcase_13 | AC | 510 ms
114,772 KB |
testcase_14 | AC | 351 ms
105,812 KB |
testcase_15 | AC | 600 ms
115,652 KB |
testcase_16 | AC | 307 ms
101,684 KB |
testcase_17 | AC | 132 ms
81,980 KB |
testcase_18 | AC | 117 ms
81,196 KB |
testcase_19 | AC | 513 ms
113,724 KB |
testcase_20 | AC | 318 ms
101,816 KB |
testcase_21 | AC | 254 ms
95,540 KB |
testcase_22 | AC | 243 ms
93,300 KB |
testcase_23 | AC | 657 ms
116,952 KB |
testcase_24 | AC | 657 ms
116,684 KB |
testcase_25 | AC | 667 ms
116,620 KB |
testcase_26 | AC | 683 ms
117,188 KB |
testcase_27 | AC | 638 ms
116,876 KB |
testcase_28 | AC | 648 ms
117,296 KB |
testcase_29 | AC | 642 ms
117,244 KB |
testcase_30 | AC | 664 ms
117,076 KB |
testcase_31 | AC | 634 ms
117,440 KB |
testcase_32 | AC | 672 ms
117,384 KB |
testcase_33 | AC | 56 ms
67,368 KB |
testcase_34 | AC | 55 ms
67,404 KB |
testcase_35 | AC | 56 ms
66,836 KB |
testcase_36 | AC | 56 ms
66,828 KB |
testcase_37 | AC | 56 ms
67,408 KB |
ソースコード
n,s,*p=map(int,open(0).read().split()) ps=sorted((p[i],i)for i in range(n)) d=[0]*n for i in range(n-1): j=i+1 if ps[j][0]-ps[i][0]<=s: d[ps[i][1]]=d[ps[j][1]]=n-1 ans=[i+1 for i in range(n)if d[i]==0] print(len(ans)) print(*ans)