結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,624 KB
testcase_01 AC 26 ms
10,752 KB
testcase_02 AC 27 ms
10,624 KB
testcase_03 AC 27 ms
10,752 KB
testcase_04 AC 28 ms
10,752 KB
testcase_05 AC 28 ms
10,752 KB
testcase_06 AC 26 ms
10,752 KB
testcase_07 AC 28 ms
10,624 KB
testcase_08 AC 26 ms
10,752 KB
testcase_09 AC 27 ms
10,752 KB
testcase_10 AC 28 ms
10,624 KB
testcase_11 AC 27 ms
10,624 KB
testcase_12 AC 26 ms
10,752 KB
testcase_13 AC 28 ms
10,624 KB
testcase_14 AC 29 ms
10,624 KB
testcase_15 AC 30 ms
10,624 KB
testcase_16 AC 30 ms
10,752 KB
testcase_17 AC 30 ms
10,624 KB
testcase_18 AC 27 ms
10,624 KB
testcase_19 AC 29 ms
10,752 KB
testcase_20 AC 28 ms
10,624 KB
testcase_21 AC 27 ms
10,624 KB
testcase_22 AC 30 ms
10,752 KB
testcase_23 AC 27 ms
10,624 KB
testcase_24 AC 433 ms
16,840 KB
testcase_25 AC 535 ms
18,036 KB
testcase_26 AC 288 ms
14,592 KB
testcase_27 AC 533 ms
17,804 KB
testcase_28 AC 310 ms
14,848 KB
testcase_29 AC 629 ms
19,020 KB
testcase_30 AC 302 ms
14,976 KB
testcase_31 AC 199 ms
13,440 KB
testcase_32 AC 726 ms
20,028 KB
testcase_33 AC 341 ms
15,488 KB
testcase_34 AC 477 ms
17,284 KB
testcase_35 AC 694 ms
21,208 KB
testcase_36 AC 97 ms
12,032 KB
testcase_37 AC 217 ms
13,568 KB
testcase_38 AC 747 ms
19,156 KB
testcase_39 AC 561 ms
16,996 KB
testcase_40 AC 564 ms
18,876 KB
testcase_41 AC 67 ms
11,264 KB
testcase_42 AC 626 ms
19,728 KB
testcase_43 AC 617 ms
19,072 KB
testcase_44 AC 699 ms
20,872 KB
testcase_45 AC 777 ms
21,128 KB
testcase_46 AC 728 ms
21,188 KB
testcase_47 AC 772 ms
21,128 KB
testcase_48 AC 754 ms
21,132 KB
testcase_49 AC 665 ms
21,132 KB
testcase_50 AC 745 ms
20,932 KB
testcase_51 AC 735 ms
21,000 KB
testcase_52 AC 786 ms
21,064 KB
testcase_53 AC 809 ms
21,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_left, bisect_right

N, D = map(int, input().split())
A = [int(input()) for _ in range(N)]
S = sorted(A)

for i in range(N):
    print(bisect_right(S, A[i] - D))
0