結果

問題 No.1110 好きな歌
ユーザー _matumo__matumo_
提出日時 2020-08-11 19:04:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 718 ms / 5,000 ms
コード長 153 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,416 KB
最終ジャッジ日時 2024-04-17 17:29:38
合計ジャッジ時間 19,339 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,752 KB
testcase_01 AC 25 ms
10,880 KB
testcase_02 AC 27 ms
10,880 KB
testcase_03 AC 25 ms
10,752 KB
testcase_04 AC 23 ms
10,880 KB
testcase_05 AC 26 ms
10,752 KB
testcase_06 AC 23 ms
10,752 KB
testcase_07 AC 23 ms
10,752 KB
testcase_08 AC 24 ms
10,880 KB
testcase_09 AC 24 ms
10,752 KB
testcase_10 AC 23 ms
10,752 KB
testcase_11 AC 24 ms
10,880 KB
testcase_12 AC 24 ms
10,752 KB
testcase_13 AC 23 ms
10,880 KB
testcase_14 AC 25 ms
10,752 KB
testcase_15 AC 24 ms
10,752 KB
testcase_16 AC 25 ms
10,752 KB
testcase_17 AC 26 ms
10,752 KB
testcase_18 AC 23 ms
10,752 KB
testcase_19 AC 27 ms
10,752 KB
testcase_20 AC 25 ms
10,752 KB
testcase_21 AC 24 ms
10,880 KB
testcase_22 AC 26 ms
10,752 KB
testcase_23 AC 27 ms
10,752 KB
testcase_24 AC 448 ms
16,832 KB
testcase_25 AC 514 ms
18,284 KB
testcase_26 AC 280 ms
14,592 KB
testcase_27 AC 485 ms
18,056 KB
testcase_28 AC 287 ms
15,104 KB
testcase_29 AC 576 ms
19,264 KB
testcase_30 AC 281 ms
15,104 KB
testcase_31 AC 181 ms
13,568 KB
testcase_32 AC 653 ms
20,148 KB
testcase_33 AC 317 ms
15,744 KB
testcase_34 AC 441 ms
17,404 KB
testcase_35 AC 662 ms
21,416 KB
testcase_36 AC 88 ms
12,160 KB
testcase_37 AC 204 ms
13,568 KB
testcase_38 AC 584 ms
19,272 KB
testcase_39 AC 422 ms
17,112 KB
testcase_40 AC 512 ms
18,864 KB
testcase_41 AC 62 ms
11,392 KB
testcase_42 AC 592 ms
19,980 KB
testcase_43 AC 569 ms
19,196 KB
testcase_44 AC 644 ms
21,116 KB
testcase_45 AC 686 ms
21,116 KB
testcase_46 AC 672 ms
21,312 KB
testcase_47 AC 718 ms
21,116 KB
testcase_48 AC 683 ms
21,160 KB
testcase_49 AC 643 ms
21,376 KB
testcase_50 AC 691 ms
21,056 KB
testcase_51 AC 688 ms
21,244 KB
testcase_52 AC 692 ms
21,056 KB
testcase_53 AC 716 ms
21,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
N,D=map(int,input().split())
pa=[int(input()) for _ in range(N)]
pb=sorted(pa)
for d in pa:
    n=bisect.bisect_left(pb,d+1-D)
    print(n)
0