結果

問題 No.1110 好きな歌
ユーザー googol_S0googol_S0
提出日時 2020-07-10 21:29:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 770 ms / 5,000 ms
コード長 147 bytes
コンパイル時間 154 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,448 KB
最終ジャッジ日時 2024-04-19 15:43:39
合計ジャッジ時間 19,782 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,880 KB
testcase_01 AC 26 ms
10,880 KB
testcase_02 AC 26 ms
10,880 KB
testcase_03 AC 26 ms
10,880 KB
testcase_04 AC 27 ms
10,752 KB
testcase_05 AC 27 ms
10,880 KB
testcase_06 AC 27 ms
10,752 KB
testcase_07 AC 27 ms
10,880 KB
testcase_08 AC 27 ms
10,880 KB
testcase_09 AC 26 ms
10,880 KB
testcase_10 AC 26 ms
10,880 KB
testcase_11 AC 27 ms
10,880 KB
testcase_12 AC 26 ms
10,752 KB
testcase_13 AC 26 ms
10,752 KB
testcase_14 AC 28 ms
10,752 KB
testcase_15 AC 27 ms
10,752 KB
testcase_16 AC 28 ms
10,880 KB
testcase_17 AC 29 ms
10,752 KB
testcase_18 AC 30 ms
10,880 KB
testcase_19 AC 29 ms
10,752 KB
testcase_20 AC 28 ms
10,752 KB
testcase_21 AC 28 ms
10,752 KB
testcase_22 AC 29 ms
10,880 KB
testcase_23 AC 27 ms
10,752 KB
testcase_24 AC 435 ms
16,844 KB
testcase_25 AC 524 ms
18,160 KB
testcase_26 AC 279 ms
14,592 KB
testcase_27 AC 520 ms
18,060 KB
testcase_28 AC 309 ms
15,104 KB
testcase_29 AC 638 ms
19,276 KB
testcase_30 AC 305 ms
15,104 KB
testcase_31 AC 198 ms
13,440 KB
testcase_32 AC 707 ms
20,280 KB
testcase_33 AC 340 ms
15,744 KB
testcase_34 AC 466 ms
17,416 KB
testcase_35 AC 702 ms
21,424 KB
testcase_36 AC 96 ms
12,032 KB
testcase_37 AC 213 ms
13,696 KB
testcase_38 AC 614 ms
19,280 KB
testcase_39 AC 457 ms
17,248 KB
testcase_40 AC 551 ms
18,876 KB
testcase_41 AC 66 ms
11,392 KB
testcase_42 AC 642 ms
19,988 KB
testcase_43 AC 624 ms
19,200 KB
testcase_44 AC 716 ms
21,132 KB
testcase_45 AC 731 ms
21,128 KB
testcase_46 AC 718 ms
21,444 KB
testcase_47 AC 768 ms
21,132 KB
testcase_48 AC 728 ms
21,128 KB
testcase_49 AC 664 ms
21,384 KB
testcase_50 AC 734 ms
21,060 KB
testcase_51 AC 713 ms
21,132 KB
testcase_52 AC 725 ms
21,064 KB
testcase_53 AC 770 ms
21,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from bisect import *
N,D=map(int,input().split())
A=[int(input()) for i in range(N)]
B=sorted(A)
for i in range(N):
  print(bisect_right(B,A[i]-D))
0