結果

問題 No.1110 好きな歌
ユーザー takakintakakin
提出日時 2020-07-10 21:32:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 635 ms / 5,000 ms
コード長 245 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 38,528 KB
最終ジャッジ日時 2024-04-19 15:54:13
合計ジャッジ時間 15,754 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
10,752 KB
testcase_01 AC 29 ms
10,752 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 AC 29 ms
10,752 KB
testcase_04 AC 29 ms
10,752 KB
testcase_05 AC 27 ms
10,752 KB
testcase_06 AC 27 ms
10,752 KB
testcase_07 AC 27 ms
10,752 KB
testcase_08 AC 26 ms
10,624 KB
testcase_09 AC 26 ms
10,880 KB
testcase_10 AC 25 ms
10,752 KB
testcase_11 AC 26 ms
10,752 KB
testcase_12 AC 26 ms
10,752 KB
testcase_13 AC 27 ms
10,752 KB
testcase_14 AC 27 ms
10,880 KB
testcase_15 AC 26 ms
10,752 KB
testcase_16 AC 27 ms
10,752 KB
testcase_17 AC 29 ms
10,880 KB
testcase_18 AC 27 ms
10,752 KB
testcase_19 AC 28 ms
10,880 KB
testcase_20 AC 27 ms
10,880 KB
testcase_21 AC 27 ms
10,752 KB
testcase_22 AC 27 ms
10,880 KB
testcase_23 AC 27 ms
10,752 KB
testcase_24 AC 332 ms
24,740 KB
testcase_25 AC 395 ms
26,784 KB
testcase_26 AC 209 ms
18,836 KB
testcase_27 AC 405 ms
26,528 KB
testcase_28 AC 229 ms
19,596 KB
testcase_29 AC 519 ms
28,196 KB
testcase_30 AC 221 ms
19,724 KB
testcase_31 AC 147 ms
17,684 KB
testcase_32 AC 542 ms
38,348 KB
testcase_33 AC 240 ms
24,512 KB
testcase_34 AC 350 ms
25,504 KB
testcase_35 AC 511 ms
38,252 KB
testcase_36 AC 74 ms
13,036 KB
testcase_37 AC 164 ms
17,548 KB
testcase_38 AC 481 ms
27,940 KB
testcase_39 AC 358 ms
24,996 KB
testcase_40 AC 388 ms
27,816 KB
testcase_41 AC 53 ms
12,280 KB
testcase_42 AC 476 ms
38,464 KB
testcase_43 AC 491 ms
28,068 KB
testcase_44 AC 541 ms
38,396 KB
testcase_45 AC 593 ms
38,528 KB
testcase_46 AC 565 ms
38,292 KB
testcase_47 AC 635 ms
38,428 KB
testcase_48 AC 593 ms
38,356 KB
testcase_49 AC 480 ms
38,420 KB
testcase_50 AC 570 ms
38,460 KB
testcase_51 AC 540 ms
38,244 KB
testcase_52 AC 577 ms
38,248 KB
testcase_53 AC 622 ms
38,424 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
n,d=map(int,input().split())
D=dict()
A=[]
for i in range(n):
  a=int(input())
  D[i]=a
  A.append(a)
A.sort()

import bisect

for i in range(n):
  a=D[i]
  print(bisect.bisect_right(A,a-d))
0