結果

問題 No.1110 好きな歌
ユーザー etale.K3etale.K3
提出日時 2021-04-22 23:00:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 791 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 95 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 18,804 KB
最終ジャッジ日時 2023-09-17 10:23:54
合計ジャッジ時間 20,197 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 16 ms
7,884 KB
testcase_02 AC 17 ms
7,884 KB
testcase_03 AC 16 ms
7,880 KB
testcase_04 AC 16 ms
8,020 KB
testcase_05 AC 16 ms
7,920 KB
testcase_06 AC 16 ms
7,836 KB
testcase_07 AC 16 ms
7,976 KB
testcase_08 AC 16 ms
7,876 KB
testcase_09 AC 16 ms
7,928 KB
testcase_10 AC 17 ms
7,880 KB
testcase_11 AC 16 ms
8,028 KB
testcase_12 AC 16 ms
7,828 KB
testcase_13 AC 16 ms
8,024 KB
testcase_14 AC 18 ms
7,828 KB
testcase_15 AC 17 ms
7,884 KB
testcase_16 AC 18 ms
7,904 KB
testcase_17 AC 19 ms
7,880 KB
testcase_18 AC 17 ms
7,992 KB
testcase_19 AC 19 ms
7,960 KB
testcase_20 AC 18 ms
7,912 KB
testcase_21 AC 17 ms
7,872 KB
testcase_22 AC 18 ms
8,024 KB
testcase_23 AC 16 ms
7,916 KB
testcase_24 AC 416 ms
14,184 KB
testcase_25 AC 514 ms
15,496 KB
testcase_26 AC 269 ms
11,992 KB
testcase_27 AC 520 ms
15,364 KB
testcase_28 AC 291 ms
12,324 KB
testcase_29 AC 624 ms
16,440 KB
testcase_30 AC 279 ms
12,312 KB
testcase_31 AC 176 ms
10,664 KB
testcase_32 AC 685 ms
17,480 KB
testcase_33 AC 311 ms
12,956 KB
testcase_34 AC 444 ms
14,728 KB
testcase_35 AC 652 ms
18,384 KB
testcase_36 AC 81 ms
9,408 KB
testcase_37 AC 198 ms
10,836 KB
testcase_38 AC 630 ms
16,656 KB
testcase_39 AC 454 ms
14,488 KB
testcase_40 AC 509 ms
16,184 KB
testcase_41 AC 53 ms
8,708 KB
testcase_42 AC 611 ms
17,332 KB
testcase_43 AC 618 ms
16,472 KB
testcase_44 AC 688 ms
18,364 KB
testcase_45 AC 750 ms
18,192 KB
testcase_46 AC 730 ms
18,728 KB
testcase_47 AC 780 ms
18,200 KB
testcase_48 AC 735 ms
18,164 KB
testcase_49 AC 620 ms
18,544 KB
testcase_50 AC 719 ms
18,224 KB
testcase_51 AC 704 ms
18,308 KB
testcase_52 AC 742 ms
18,220 KB
testcase_53 AC 791 ms
18,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import bisect_right

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

L = sorted(A)

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