結果

問題 No.1110 好きな歌
ユーザー tter4tter4
提出日時 2020-07-10 21:57:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 274 ms / 5,000 ms
コード長 182 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 82,944 KB
実行使用メモリ 81,444 KB
最終ジャッジ日時 2024-04-19 17:02:47
合計ジャッジ時間 9,272 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,148 KB
testcase_01 AC 35 ms
52,224 KB
testcase_02 AC 36 ms
52,480 KB
testcase_03 AC 37 ms
51,968 KB
testcase_04 AC 39 ms
52,096 KB
testcase_05 AC 37 ms
51,840 KB
testcase_06 AC 34 ms
52,480 KB
testcase_07 AC 33 ms
51,840 KB
testcase_08 AC 33 ms
51,968 KB
testcase_09 AC 34 ms
52,332 KB
testcase_10 AC 33 ms
52,096 KB
testcase_11 AC 32 ms
51,968 KB
testcase_12 AC 33 ms
51,968 KB
testcase_13 AC 32 ms
52,352 KB
testcase_14 AC 46 ms
62,208 KB
testcase_15 AC 41 ms
59,520 KB
testcase_16 AC 43 ms
61,696 KB
testcase_17 AC 50 ms
64,128 KB
testcase_18 AC 34 ms
52,736 KB
testcase_19 AC 52 ms
65,664 KB
testcase_20 AC 51 ms
64,292 KB
testcase_21 AC 43 ms
60,160 KB
testcase_22 AC 50 ms
63,488 KB
testcase_23 AC 39 ms
59,392 KB
testcase_24 AC 169 ms
78,896 KB
testcase_25 AC 192 ms
79,376 KB
testcase_26 AC 146 ms
78,472 KB
testcase_27 AC 197 ms
79,360 KB
testcase_28 AC 135 ms
78,700 KB
testcase_29 AC 227 ms
79,992 KB
testcase_30 AC 125 ms
78,692 KB
testcase_31 AC 112 ms
77,824 KB
testcase_32 AC 233 ms
80,460 KB
testcase_33 AC 136 ms
78,972 KB
testcase_34 AC 186 ms
79,436 KB
testcase_35 AC 219 ms
81,108 KB
testcase_36 AC 87 ms
76,884 KB
testcase_37 AC 120 ms
77,496 KB
testcase_38 AC 227 ms
80,212 KB
testcase_39 AC 185 ms
79,488 KB
testcase_40 AC 170 ms
80,252 KB
testcase_41 AC 83 ms
76,784 KB
testcase_42 AC 199 ms
80,384 KB
testcase_43 AC 224 ms
80,256 KB
testcase_44 AC 226 ms
81,024 KB
testcase_45 AC 255 ms
80,956 KB
testcase_46 AC 232 ms
81,444 KB
testcase_47 AC 260 ms
81,300 KB
testcase_48 AC 240 ms
81,152 KB
testcase_49 AC 197 ms
81,276 KB
testcase_50 AC 242 ms
80,896 KB
testcase_51 AC 228 ms
80,928 KB
testcase_52 AC 246 ms
80,968 KB
testcase_53 AC 274 ms
81,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect


n, d = map(int, input().split())
A = [int(input()) for _ in range(n)]
A_sorted = sorted(A)

for a in A:
    idx = bisect.bisect_right(A_sorted, a - d)
    print(idx)
0