結果

問題 No.1110 好きな歌
ユーザー mationaruzoumationaruzou
提出日時 2020-07-10 21:46:04
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 762 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 178 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 18,688 KB
最終ジャッジ日時 2023-08-01 17:26:01
合計ジャッジ時間 19,072 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,828 KB
testcase_01 AC 16 ms
7,920 KB
testcase_02 AC 15 ms
7,844 KB
testcase_03 AC 16 ms
8,036 KB
testcase_04 AC 15 ms
7,968 KB
testcase_05 AC 16 ms
7,856 KB
testcase_06 AC 16 ms
7,836 KB
testcase_07 AC 15 ms
7,888 KB
testcase_08 AC 16 ms
7,848 KB
testcase_09 AC 15 ms
7,892 KB
testcase_10 AC 16 ms
7,832 KB
testcase_11 AC 15 ms
7,884 KB
testcase_12 AC 15 ms
7,896 KB
testcase_13 AC 16 ms
7,840 KB
testcase_14 AC 17 ms
7,784 KB
testcase_15 AC 16 ms
7,888 KB
testcase_16 AC 17 ms
7,896 KB
testcase_17 AC 17 ms
7,952 KB
testcase_18 AC 15 ms
7,900 KB
testcase_19 AC 18 ms
7,896 KB
testcase_20 AC 18 ms
7,752 KB
testcase_21 AC 16 ms
7,840 KB
testcase_22 AC 17 ms
7,832 KB
testcase_23 AC 16 ms
7,848 KB
testcase_24 AC 402 ms
14,040 KB
testcase_25 AC 493 ms
15,516 KB
testcase_26 AC 258 ms
11,956 KB
testcase_27 AC 500 ms
15,268 KB
testcase_28 AC 280 ms
12,392 KB
testcase_29 AC 597 ms
16,596 KB
testcase_30 AC 269 ms
12,428 KB
testcase_31 AC 174 ms
10,692 KB
testcase_32 AC 669 ms
17,368 KB
testcase_33 AC 306 ms
13,052 KB
testcase_34 AC 430 ms
14,696 KB
testcase_35 AC 649 ms
18,336 KB
testcase_36 AC 80 ms
9,448 KB
testcase_37 AC 195 ms
10,972 KB
testcase_38 AC 591 ms
16,764 KB
testcase_39 AC 434 ms
14,468 KB
testcase_40 AC 494 ms
16,268 KB
testcase_41 AC 51 ms
8,668 KB
testcase_42 AC 597 ms
17,152 KB
testcase_43 AC 575 ms
16,416 KB
testcase_44 AC 675 ms
18,232 KB
testcase_45 AC 710 ms
18,176 KB
testcase_46 AC 694 ms
18,688 KB
testcase_47 AC 762 ms
18,160 KB
testcase_48 AC 704 ms
18,244 KB
testcase_49 AC 622 ms
18,504 KB
testcase_50 AC 705 ms
18,100 KB
testcase_51 AC 675 ms
18,352 KB
testcase_52 AC 714 ms
18,228 KB
testcase_53 AC 762 ms
18,576 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