結果

問題 No.1110 好きな歌
ユーザー 👑 timitimi
提出日時 2020-09-30 16:08:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 844 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 10,444 KB
実行使用メモリ 18,476 KB
最終ジャッジ日時 2023-09-20 06:59:50
合計ジャッジ時間 24,439 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
8,152 KB
testcase_01 AC 16 ms
8,176 KB
testcase_02 AC 17 ms
8,104 KB
testcase_03 AC 17 ms
8,140 KB
testcase_04 AC 17 ms
8,176 KB
testcase_05 AC 16 ms
7,996 KB
testcase_06 AC 16 ms
8,140 KB
testcase_07 AC 16 ms
8,212 KB
testcase_08 AC 16 ms
8,000 KB
testcase_09 AC 16 ms
8,028 KB
testcase_10 AC 16 ms
8,144 KB
testcase_11 AC 16 ms
8,028 KB
testcase_12 AC 16 ms
8,036 KB
testcase_13 AC 16 ms
7,996 KB
testcase_14 AC 18 ms
8,092 KB
testcase_15 AC 17 ms
8,168 KB
testcase_16 AC 17 ms
8,168 KB
testcase_17 AC 19 ms
8,140 KB
testcase_18 AC 16 ms
8,104 KB
testcase_19 AC 19 ms
8,136 KB
testcase_20 AC 19 ms
7,832 KB
testcase_21 AC 17 ms
8,208 KB
testcase_22 AC 19 ms
8,236 KB
testcase_23 AC 17 ms
8,160 KB
testcase_24 AC 458 ms
14,088 KB
testcase_25 AC 554 ms
15,436 KB
testcase_26 AC 295 ms
11,892 KB
testcase_27 AC 555 ms
15,468 KB
testcase_28 AC 311 ms
12,468 KB
testcase_29 AC 683 ms
16,376 KB
testcase_30 AC 296 ms
12,460 KB
testcase_31 AC 190 ms
10,784 KB
testcase_32 AC 748 ms
17,416 KB
testcase_33 AC 333 ms
12,956 KB
testcase_34 AC 485 ms
14,740 KB
testcase_35 AC 718 ms
18,476 KB
testcase_36 AC 88 ms
9,388 KB
testcase_37 AC 214 ms
10,780 KB
testcase_38 AC 671 ms
16,524 KB
testcase_39 AC 488 ms
14,352 KB
testcase_40 AC 564 ms
16,308 KB
testcase_41 AC 57 ms
8,776 KB
testcase_42 AC 673 ms
17,256 KB
testcase_43 AC 659 ms
16,304 KB
testcase_44 AC 749 ms
18,304 KB
testcase_45 AC 808 ms
18,260 KB
testcase_46 AC 791 ms
18,304 KB
testcase_47 AC 843 ms
18,264 KB
testcase_48 AC 805 ms
18,232 KB
testcase_49 AC 689 ms
18,440 KB
testcase_50 AC 795 ms
18,052 KB
testcase_51 AC 760 ms
18,204 KB
testcase_52 AC 806 ms
18,140 KB
testcase_53 AC 844 ms
18,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,D=map(int, input().split())
A=[]
for i in range(N):
    d=int(input())
    A.append(d)
B=A
A=sorted(A)
import bisect
for i in range(N):
    d=bisect.bisect_right(A,B[i]-D)
    print(d)
0