結果

問題 No.1110 好きな歌
ユーザー gingin
提出日時 2020-07-11 20:09:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 816 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,448 KB
最終ジャッジ日時 2024-04-21 12:50:55
合計ジャッジ時間 20,030 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,624 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 26 ms
10,624 KB
testcase_03 AC 25 ms
10,752 KB
testcase_04 AC 26 ms
10,752 KB
testcase_05 AC 25 ms
10,752 KB
testcase_06 AC 25 ms
10,752 KB
testcase_07 AC 26 ms
10,752 KB
testcase_08 AC 26 ms
10,752 KB
testcase_09 AC 26 ms
10,752 KB
testcase_10 AC 26 ms
10,752 KB
testcase_11 AC 27 ms
10,752 KB
testcase_12 AC 25 ms
10,752 KB
testcase_13 AC 25 ms
10,880 KB
testcase_14 AC 27 ms
10,752 KB
testcase_15 AC 26 ms
10,752 KB
testcase_16 AC 27 ms
10,752 KB
testcase_17 AC 28 ms
10,880 KB
testcase_18 AC 27 ms
10,752 KB
testcase_19 AC 28 ms
10,752 KB
testcase_20 AC 27 ms
10,752 KB
testcase_21 AC 27 ms
10,752 KB
testcase_22 AC 28 ms
10,752 KB
testcase_23 AC 27 ms
10,752 KB
testcase_24 AC 428 ms
16,836 KB
testcase_25 AC 513 ms
18,160 KB
testcase_26 AC 279 ms
14,592 KB
testcase_27 AC 517 ms
17,984 KB
testcase_28 AC 293 ms
15,104 KB
testcase_29 AC 631 ms
19,272 KB
testcase_30 AC 290 ms
15,104 KB
testcase_31 AC 192 ms
13,312 KB
testcase_32 AC 679 ms
20,280 KB
testcase_33 AC 331 ms
15,744 KB
testcase_34 AC 445 ms
17,412 KB
testcase_35 AC 656 ms
21,312 KB
testcase_36 AC 93 ms
12,032 KB
testcase_37 AC 207 ms
13,440 KB
testcase_38 AC 599 ms
19,276 KB
testcase_39 AC 453 ms
16,996 KB
testcase_40 AC 531 ms
18,876 KB
testcase_41 AC 64 ms
11,520 KB
testcase_42 AC 627 ms
19,988 KB
testcase_43 AC 594 ms
19,204 KB
testcase_44 AC 681 ms
21,128 KB
testcase_45 AC 726 ms
21,000 KB
testcase_46 AC 708 ms
21,448 KB
testcase_47 AC 739 ms
21,128 KB
testcase_48 AC 721 ms
21,128 KB
testcase_49 AC 680 ms
21,256 KB
testcase_50 AC 721 ms
21,060 KB
testcase_51 AC 711 ms
21,132 KB
testcase_52 AC 744 ms
21,064 KB
testcase_53 AC 816 ms
21,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_right
N, D = map(int,input().split())
A = [int(input()) for _ in range(N)]
B = sorted(A)

for a in A:
    print(bisect_right(B, a-D))
0