結果

問題 No.1110 好きな歌
ユーザー 👑 H20H20
提出日時 2021-12-27 12:43:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 294 ms / 5,000 ms
コード長 163 bytes
コンパイル時間 874 ms
コンパイル使用メモリ 81,816 KB
実行使用メモリ 84,300 KB
最終ジャッジ日時 2023-10-25 21:57:00
合計ジャッジ時間 15,808 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,552 KB
testcase_01 AC 33 ms
53,552 KB
testcase_02 AC 32 ms
53,552 KB
testcase_03 AC 33 ms
53,552 KB
testcase_04 AC 34 ms
53,552 KB
testcase_05 AC 34 ms
53,552 KB
testcase_06 AC 35 ms
53,552 KB
testcase_07 AC 35 ms
53,552 KB
testcase_08 AC 34 ms
53,552 KB
testcase_09 AC 35 ms
53,552 KB
testcase_10 AC 35 ms
53,552 KB
testcase_11 AC 35 ms
53,552 KB
testcase_12 AC 34 ms
53,552 KB
testcase_13 AC 35 ms
53,552 KB
testcase_14 AC 46 ms
61,592 KB
testcase_15 AC 43 ms
61,220 KB
testcase_16 AC 45 ms
61,592 KB
testcase_17 AC 53 ms
65,692 KB
testcase_18 AC 36 ms
53,552 KB
testcase_19 AC 62 ms
66,192 KB
testcase_20 AC 53 ms
65,696 KB
testcase_21 AC 47 ms
61,224 KB
testcase_22 AC 50 ms
63,640 KB
testcase_23 AC 40 ms
59,168 KB
testcase_24 AC 180 ms
80,472 KB
testcase_25 AC 200 ms
81,468 KB
testcase_26 AC 149 ms
78,904 KB
testcase_27 AC 209 ms
81,588 KB
testcase_28 AC 141 ms
79,928 KB
testcase_29 AC 243 ms
81,656 KB
testcase_30 AC 132 ms
79,672 KB
testcase_31 AC 117 ms
79,316 KB
testcase_32 AC 251 ms
83,220 KB
testcase_33 AC 141 ms
80,468 KB
testcase_34 AC 201 ms
80,924 KB
testcase_35 AC 227 ms
84,088 KB
testcase_36 AC 86 ms
76,872 KB
testcase_37 AC 130 ms
79,168 KB
testcase_38 AC 242 ms
81,896 KB
testcase_39 AC 202 ms
80,788 KB
testcase_40 AC 191 ms
81,644 KB
testcase_41 AC 86 ms
76,352 KB
testcase_42 AC 225 ms
83,264 KB
testcase_43 AC 244 ms
81,608 KB
testcase_44 AC 238 ms
83,908 KB
testcase_45 AC 281 ms
83,908 KB
testcase_46 AC 253 ms
84,104 KB
testcase_47 AC 276 ms
83,912 KB
testcase_48 AC 291 ms
83,908 KB
testcase_49 AC 210 ms
84,300 KB
testcase_50 AC 249 ms
83,712 KB
testcase_51 AC 243 ms
83,908 KB
testcase_52 AC 294 ms
83,716 KB
testcase_53 AC 279 ms
84,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
N,D = map(int,input().split())
A = []
for _ in range(N):
    A.append(int(input()))
B = list(A)
B.sort()
for a in A:
    print(bisect.bisect(B,a-D))
0