結果

問題 No.1110 好きな歌
ユーザー mlihua09mlihua09
提出日時 2020-09-13 02:32:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 316 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 425 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 82,680 KB
最終ジャッジ日時 2023-08-30 20:02:44
合計ジャッジ時間 12,857 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,276 KB
testcase_01 AC 70 ms
71,248 KB
testcase_02 AC 70 ms
71,388 KB
testcase_03 AC 69 ms
71,176 KB
testcase_04 AC 67 ms
71,388 KB
testcase_05 AC 69 ms
71,184 KB
testcase_06 AC 71 ms
71,564 KB
testcase_07 AC 70 ms
71,436 KB
testcase_08 AC 69 ms
71,432 KB
testcase_09 AC 69 ms
71,548 KB
testcase_10 AC 70 ms
71,060 KB
testcase_11 AC 70 ms
71,260 KB
testcase_12 AC 70 ms
71,512 KB
testcase_13 AC 69 ms
71,580 KB
testcase_14 AC 83 ms
76,084 KB
testcase_15 AC 77 ms
75,356 KB
testcase_16 AC 81 ms
75,828 KB
testcase_17 AC 90 ms
75,996 KB
testcase_18 AC 72 ms
71,252 KB
testcase_19 AC 90 ms
76,028 KB
testcase_20 AC 85 ms
76,000 KB
testcase_21 AC 80 ms
75,104 KB
testcase_22 AC 85 ms
76,012 KB
testcase_23 AC 75 ms
75,192 KB
testcase_24 AC 212 ms
80,080 KB
testcase_25 AC 235 ms
80,380 KB
testcase_26 AC 181 ms
79,440 KB
testcase_27 AC 238 ms
80,848 KB
testcase_28 AC 176 ms
79,844 KB
testcase_29 AC 278 ms
81,268 KB
testcase_30 AC 164 ms
79,508 KB
testcase_31 AC 150 ms
79,148 KB
testcase_32 AC 284 ms
81,152 KB
testcase_33 AC 172 ms
79,704 KB
testcase_34 AC 229 ms
80,696 KB
testcase_35 AC 254 ms
82,368 KB
testcase_36 AC 118 ms
77,832 KB
testcase_37 AC 161 ms
78,576 KB
testcase_38 AC 272 ms
81,216 KB
testcase_39 AC 230 ms
80,116 KB
testcase_40 AC 216 ms
81,028 KB
testcase_41 AC 118 ms
77,776 KB
testcase_42 AC 247 ms
81,808 KB
testcase_43 AC 274 ms
81,032 KB
testcase_44 AC 258 ms
82,192 KB
testcase_45 AC 302 ms
82,088 KB
testcase_46 AC 279 ms
82,336 KB
testcase_47 AC 308 ms
82,084 KB
testcase_48 AC 284 ms
82,256 KB
testcase_49 AC 242 ms
82,680 KB
testcase_50 AC 287 ms
81,676 KB
testcase_51 AC 272 ms
82,064 KB
testcase_52 AC 285 ms
81,528 KB
testcase_53 AC 316 ms
82,444 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


N, D = map(int, input().split())

from bisect import bisect

A = [int(input()) for i in range(N)]

a = A.copy()


A.sort()




for i in a:
    print(bisect(A, i - D))
0