結果

問題 No.1110 好きな歌
ユーザー mationaruzoumationaruzou
提出日時 2020-07-10 21:46:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 741 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,312 KB
最終ジャッジ日時 2024-04-19 16:38:51
合計ジャッジ時間 19,159 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,880 KB
testcase_01 AC 25 ms
10,752 KB
testcase_02 AC 25 ms
10,880 KB
testcase_03 AC 25 ms
10,880 KB
testcase_04 AC 26 ms
10,880 KB
testcase_05 AC 25 ms
10,880 KB
testcase_06 AC 26 ms
10,880 KB
testcase_07 AC 27 ms
10,752 KB
testcase_08 AC 27 ms
10,752 KB
testcase_09 AC 25 ms
10,752 KB
testcase_10 AC 26 ms
10,752 KB
testcase_11 AC 25 ms
10,880 KB
testcase_12 AC 26 ms
10,880 KB
testcase_13 AC 27 ms
10,752 KB
testcase_14 AC 30 ms
10,752 KB
testcase_15 AC 31 ms
10,752 KB
testcase_16 AC 31 ms
10,752 KB
testcase_17 AC 32 ms
10,880 KB
testcase_18 AC 29 ms
10,880 KB
testcase_19 AC 29 ms
10,880 KB
testcase_20 AC 29 ms
10,752 KB
testcase_21 AC 28 ms
10,880 KB
testcase_22 AC 28 ms
10,752 KB
testcase_23 AC 28 ms
10,752 KB
testcase_24 AC 435 ms
16,832 KB
testcase_25 AC 515 ms
18,152 KB
testcase_26 AC 287 ms
14,592 KB
testcase_27 AC 518 ms
18,184 KB
testcase_28 AC 297 ms
15,104 KB
testcase_29 AC 605 ms
19,392 KB
testcase_30 AC 287 ms
15,104 KB
testcase_31 AC 192 ms
13,440 KB
testcase_32 AC 681 ms
20,276 KB
testcase_33 AC 320 ms
15,872 KB
testcase_34 AC 434 ms
17,532 KB
testcase_35 AC 665 ms
21,288 KB
testcase_36 AC 99 ms
12,032 KB
testcase_37 AC 215 ms
13,568 KB
testcase_38 AC 632 ms
19,400 KB
testcase_39 AC 448 ms
17,112 KB
testcase_40 AC 534 ms
18,868 KB
testcase_41 AC 64 ms
11,520 KB
testcase_42 AC 611 ms
19,976 KB
testcase_43 AC 595 ms
19,192 KB
testcase_44 AC 680 ms
21,056 KB
testcase_45 AC 727 ms
21,116 KB
testcase_46 AC 686 ms
21,312 KB
testcase_47 AC 741 ms
21,120 KB
testcase_48 AC 699 ms
21,116 KB
testcase_49 AC 640 ms
21,244 KB
testcase_50 AC 710 ms
21,112 KB
testcase_51 AC 716 ms
21,120 KB
testcase_52 AC 717 ms
21,052 KB
testcase_53 AC 734 ms
21,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_right
n, d = map(int, input().split())
A = [int(input()) for _ in range(n)]

B = sorted(A)
for i in A:
    print(bisect_right(B, i-d))
0