結果

問題 No.1110 好きな歌
ユーザー roarisroaris
提出日時 2020-07-10 21:30:59
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 296 ms / 5,000 ms
コード長 220 bytes
コンパイル時間 608 ms
コンパイル使用メモリ 86,952 KB
実行使用メモリ 82,852 KB
最終ジャッジ日時 2023-08-01 16:30:05
合計ジャッジ時間 12,825 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,508 KB
testcase_01 AC 91 ms
71,392 KB
testcase_02 AC 91 ms
71,608 KB
testcase_03 AC 91 ms
71,520 KB
testcase_04 AC 91 ms
71,332 KB
testcase_05 AC 90 ms
71,564 KB
testcase_06 AC 90 ms
71,668 KB
testcase_07 AC 89 ms
71,532 KB
testcase_08 AC 90 ms
71,204 KB
testcase_09 AC 89 ms
71,532 KB
testcase_10 AC 90 ms
71,504 KB
testcase_11 AC 89 ms
71,480 KB
testcase_12 AC 91 ms
71,336 KB
testcase_13 AC 91 ms
71,176 KB
testcase_14 AC 114 ms
76,244 KB
testcase_15 AC 99 ms
76,240 KB
testcase_16 AC 101 ms
76,208 KB
testcase_17 AC 106 ms
76,080 KB
testcase_18 AC 94 ms
71,592 KB
testcase_19 AC 105 ms
76,496 KB
testcase_20 AC 102 ms
76,068 KB
testcase_21 AC 102 ms
76,396 KB
testcase_22 AC 101 ms
76,068 KB
testcase_23 AC 95 ms
76,320 KB
testcase_24 AC 211 ms
80,092 KB
testcase_25 AC 224 ms
81,148 KB
testcase_26 AC 177 ms
80,004 KB
testcase_27 AC 228 ms
80,992 KB
testcase_28 AC 173 ms
80,424 KB
testcase_29 AC 264 ms
81,916 KB
testcase_30 AC 159 ms
79,980 KB
testcase_31 AC 153 ms
78,964 KB
testcase_32 AC 265 ms
82,688 KB
testcase_33 AC 169 ms
80,392 KB
testcase_34 AC 217 ms
80,612 KB
testcase_35 AC 231 ms
82,572 KB
testcase_36 AC 122 ms
78,280 KB
testcase_37 AC 158 ms
78,964 KB
testcase_38 AC 260 ms
81,540 KB
testcase_39 AC 221 ms
80,620 KB
testcase_40 AC 201 ms
81,456 KB
testcase_41 AC 123 ms
77,824 KB
testcase_42 AC 225 ms
81,760 KB
testcase_43 AC 255 ms
81,308 KB
testcase_44 AC 240 ms
82,120 KB
testcase_45 AC 285 ms
82,336 KB
testcase_46 AC 262 ms
82,580 KB
testcase_47 AC 289 ms
82,508 KB
testcase_48 AC 269 ms
82,460 KB
testcase_49 AC 223 ms
82,852 KB
testcase_50 AC 271 ms
82,508 KB
testcase_51 AC 251 ms
82,388 KB
testcase_52 AC 269 ms
82,552 KB
testcase_53 AC 296 ms
82,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *
from bisect import *

N, D = map(int, input().split())
A = [int(input()) for _ in range(N)]
B = A[:]
B.sort()

for Ai in A:
    print(bisect_right(B, Ai-D))
0