結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,752 KB
testcase_01 AC 24 ms
10,880 KB
testcase_02 AC 28 ms
10,752 KB
testcase_03 AC 29 ms
10,880 KB
testcase_04 AC 28 ms
10,880 KB
testcase_05 AC 26 ms
10,752 KB
testcase_06 AC 25 ms
10,880 KB
testcase_07 AC 25 ms
10,752 KB
testcase_08 AC 26 ms
10,880 KB
testcase_09 AC 26 ms
10,752 KB
testcase_10 AC 25 ms
10,752 KB
testcase_11 AC 26 ms
10,752 KB
testcase_12 AC 26 ms
10,752 KB
testcase_13 AC 26 ms
10,752 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 26 ms
10,752 KB
testcase_19 AC 28 ms
10,752 KB
testcase_20 AC 28 ms
10,880 KB
testcase_21 AC 26 ms
10,752 KB
testcase_22 AC 27 ms
10,752 KB
testcase_23 AC 26 ms
10,880 KB
testcase_24 AC 423 ms
16,832 KB
testcase_25 AC 535 ms
18,156 KB
testcase_26 AC 282 ms
14,592 KB
testcase_27 AC 511 ms
18,056 KB
testcase_28 AC 310 ms
15,104 KB
testcase_29 AC 622 ms
19,268 KB
testcase_30 AC 291 ms
15,232 KB
testcase_31 AC 190 ms
13,440 KB
testcase_32 AC 682 ms
20,144 KB
testcase_33 AC 334 ms
15,744 KB
testcase_34 AC 463 ms
17,404 KB
testcase_35 AC 673 ms
21,288 KB
testcase_36 AC 95 ms
12,032 KB
testcase_37 AC 214 ms
13,568 KB
testcase_38 AC 616 ms
19,272 KB
testcase_39 AC 446 ms
17,116 KB
testcase_40 AC 532 ms
18,872 KB
testcase_41 AC 66 ms
11,520 KB
testcase_42 AC 618 ms
19,976 KB
testcase_43 AC 588 ms
19,120 KB
testcase_44 AC 693 ms
21,120 KB
testcase_45 AC 713 ms
21,120 KB
testcase_46 AC 714 ms
21,308 KB
testcase_47 AC 749 ms
21,212 KB
testcase_48 AC 710 ms
21,040 KB
testcase_49 AC 666 ms
21,248 KB
testcase_50 AC 733 ms
21,052 KB
testcase_51 AC 709 ms
21,116 KB
testcase_52 AC 732 ms
21,056 KB
testcase_53 AC 774 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 range(n):
    print(bisect_right(b, a[i] - d))
0