結果

問題 No.1110 好きな歌
ユーザー DrDrpilotDrDrpilot
提出日時 2022-01-21 12:52:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 644 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 10,688 KB
実行使用メモリ 18,784 KB
最終ジャッジ日時 2023-08-16 17:48:00
合計ジャッジ時間 20,683 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
8,044 KB
testcase_01 AC 13 ms
8,172 KB
testcase_02 AC 13 ms
8,108 KB
testcase_03 AC 16 ms
8,220 KB
testcase_04 AC 15 ms
8,144 KB
testcase_05 AC 14 ms
8,120 KB
testcase_06 AC 13 ms
8,156 KB
testcase_07 AC 13 ms
8,028 KB
testcase_08 AC 14 ms
8,044 KB
testcase_09 AC 13 ms
8,164 KB
testcase_10 AC 12 ms
8,084 KB
testcase_11 AC 13 ms
8,200 KB
testcase_12 AC 13 ms
8,072 KB
testcase_13 AC 13 ms
8,156 KB
testcase_14 AC 15 ms
8,136 KB
testcase_15 AC 14 ms
8,180 KB
testcase_16 AC 14 ms
8,120 KB
testcase_17 AC 15 ms
8,112 KB
testcase_18 AC 13 ms
8,132 KB
testcase_19 AC 16 ms
8,168 KB
testcase_20 AC 14 ms
7,816 KB
testcase_21 AC 14 ms
8,204 KB
testcase_22 AC 15 ms
8,144 KB
testcase_23 AC 14 ms
8,224 KB
testcase_24 AC 348 ms
13,992 KB
testcase_25 AC 430 ms
15,568 KB
testcase_26 AC 243 ms
11,860 KB
testcase_27 AC 429 ms
15,464 KB
testcase_28 AC 243 ms
12,348 KB
testcase_29 AC 509 ms
16,508 KB
testcase_30 AC 233 ms
12,464 KB
testcase_31 AC 151 ms
10,640 KB
testcase_32 AC 550 ms
17,388 KB
testcase_33 AC 262 ms
12,972 KB
testcase_34 AC 372 ms
14,752 KB
testcase_35 AC 644 ms
18,320 KB
testcase_36 AC 72 ms
9,392 KB
testcase_37 AC 173 ms
10,836 KB
testcase_38 AC 524 ms
16,640 KB
testcase_39 AC 375 ms
14,476 KB
testcase_40 AC 440 ms
16,220 KB
testcase_41 AC 46 ms
8,656 KB
testcase_42 AC 514 ms
17,288 KB
testcase_43 AC 501 ms
16,524 KB
testcase_44 AC 580 ms
18,276 KB
testcase_45 AC 614 ms
18,192 KB
testcase_46 AC 610 ms
18,680 KB
testcase_47 AC 633 ms
18,268 KB
testcase_48 AC 602 ms
18,176 KB
testcase_49 AC 553 ms
18,472 KB
testcase_50 AC 605 ms
18,144 KB
testcase_51 AC 580 ms
18,148 KB
testcase_52 AC 607 ms
18,044 KB
testcase_53 AC 630 ms
18,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,d=map(int,input().split())
a=[int(input()) for _ in range(n)]
b=sorted(a)
import bisect
for i in a:
    x=bisect.bisect_right(b,i-d)
    print(x)
0