結果

問題 No.1110 好きな歌
ユーザー rlangevinrlangevin
提出日時 2023-01-03 12:10:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 342 ms / 5,000 ms
コード長 254 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 86,480 KB
実行使用メモリ 90,824 KB
最終ジャッジ日時 2023-08-18 00:15:54
合計ジャッジ時間 17,141 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
71,264 KB
testcase_01 AC 90 ms
71,340 KB
testcase_02 AC 90 ms
71,392 KB
testcase_03 AC 92 ms
71,332 KB
testcase_04 AC 92 ms
71,340 KB
testcase_05 AC 91 ms
71,404 KB
testcase_06 AC 92 ms
71,332 KB
testcase_07 AC 94 ms
71,512 KB
testcase_08 AC 95 ms
71,520 KB
testcase_09 AC 91 ms
71,024 KB
testcase_10 AC 92 ms
71,480 KB
testcase_11 AC 93 ms
71,284 KB
testcase_12 AC 92 ms
71,384 KB
testcase_13 AC 92 ms
71,388 KB
testcase_14 AC 101 ms
75,228 KB
testcase_15 AC 98 ms
75,408 KB
testcase_16 AC 100 ms
75,140 KB
testcase_17 AC 104 ms
75,348 KB
testcase_18 AC 91 ms
71,552 KB
testcase_19 AC 105 ms
75,696 KB
testcase_20 AC 102 ms
75,272 KB
testcase_21 AC 99 ms
75,228 KB
testcase_22 AC 103 ms
75,220 KB
testcase_23 AC 99 ms
75,140 KB
testcase_24 AC 239 ms
88,012 KB
testcase_25 AC 261 ms
85,140 KB
testcase_26 AC 200 ms
83,972 KB
testcase_27 AC 257 ms
85,128 KB
testcase_28 AC 192 ms
84,584 KB
testcase_29 AC 305 ms
89,224 KB
testcase_30 AC 187 ms
84,820 KB
testcase_31 AC 165 ms
80,892 KB
testcase_32 AC 315 ms
89,704 KB
testcase_33 AC 189 ms
83,328 KB
testcase_34 AC 252 ms
86,500 KB
testcase_35 AC 273 ms
90,672 KB
testcase_36 AC 136 ms
78,476 KB
testcase_37 AC 180 ms
81,700 KB
testcase_38 AC 307 ms
89,408 KB
testcase_39 AC 253 ms
88,312 KB
testcase_40 AC 240 ms
89,196 KB
testcase_41 AC 132 ms
77,768 KB
testcase_42 AC 266 ms
90,808 KB
testcase_43 AC 295 ms
89,112 KB
testcase_44 AC 285 ms
90,536 KB
testcase_45 AC 329 ms
90,648 KB
testcase_46 AC 309 ms
90,664 KB
testcase_47 AC 342 ms
90,180 KB
testcase_48 AC 314 ms
90,336 KB
testcase_49 AC 270 ms
90,776 KB
testcase_50 AC 318 ms
90,324 KB
testcase_51 AC 301 ms
90,648 KB
testcase_52 AC 314 ms
90,308 KB
testcase_53 AC 341 ms
90,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
readline = sys.stdin.readline
from bisect import *
from copy import *

N, D = map(int, readline().split())
A = []
for i in range(N):
    A.append(int(readline()))
B = deepcopy(A)
B.sort()
for i in range(N):
    print(bisect_right(B, A[i] - D))
0