結果

問題 No.1110 好きな歌
ユーザー roarisroaris
提出日時 2020-07-10 21:30:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 242 ms / 5,000 ms
コード長 220 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,560 KB
実行使用メモリ 81,636 KB
最終ジャッジ日時 2024-04-19 15:47:12
合計ジャッジ時間 9,084 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,888 KB
testcase_01 AC 40 ms
53,504 KB
testcase_02 AC 38 ms
53,760 KB
testcase_03 AC 40 ms
53,760 KB
testcase_04 AC 39 ms
53,760 KB
testcase_05 AC 37 ms
53,760 KB
testcase_06 AC 38 ms
53,632 KB
testcase_07 AC 38 ms
53,760 KB
testcase_08 AC 38 ms
53,692 KB
testcase_09 AC 40 ms
54,016 KB
testcase_10 AC 39 ms
53,888 KB
testcase_11 AC 37 ms
53,888 KB
testcase_12 AC 38 ms
54,144 KB
testcase_13 AC 37 ms
53,504 KB
testcase_14 AC 46 ms
61,432 KB
testcase_15 AC 44 ms
60,544 KB
testcase_16 AC 45 ms
62,080 KB
testcase_17 AC 48 ms
62,592 KB
testcase_18 AC 38 ms
53,888 KB
testcase_19 AC 49 ms
63,232 KB
testcase_20 AC 48 ms
62,464 KB
testcase_21 AC 45 ms
60,672 KB
testcase_22 AC 49 ms
62,080 KB
testcase_23 AC 43 ms
60,416 KB
testcase_24 AC 161 ms
79,056 KB
testcase_25 AC 180 ms
79,620 KB
testcase_26 AC 131 ms
78,504 KB
testcase_27 AC 178 ms
79,552 KB
testcase_28 AC 122 ms
79,356 KB
testcase_29 AC 207 ms
80,512 KB
testcase_30 AC 110 ms
78,944 KB
testcase_31 AC 104 ms
77,568 KB
testcase_32 AC 210 ms
80,588 KB
testcase_33 AC 117 ms
78,476 KB
testcase_34 AC 168 ms
79,488 KB
testcase_35 AC 189 ms
81,364 KB
testcase_36 AC 75 ms
77,004 KB
testcase_37 AC 108 ms
77,640 KB
testcase_38 AC 207 ms
80,640 KB
testcase_39 AC 172 ms
79,384 KB
testcase_40 AC 157 ms
80,080 KB
testcase_41 AC 75 ms
76,800 KB
testcase_42 AC 176 ms
80,568 KB
testcase_43 AC 203 ms
80,460 KB
testcase_44 AC 199 ms
81,024 KB
testcase_45 AC 236 ms
81,152 KB
testcase_46 AC 211 ms
81,156 KB
testcase_47 AC 241 ms
81,408 KB
testcase_48 AC 226 ms
81,440 KB
testcase_49 AC 180 ms
81,536 KB
testcase_50 AC 222 ms
80,896 KB
testcase_51 AC 202 ms
81,024 KB
testcase_52 AC 217 ms
80,904 KB
testcase_53 AC 242 ms
81,636 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