結果

問題 No.1110 好きな歌
ユーザー paruf4paruf4
提出日時 2020-07-10 22:41:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 796 ms / 5,000 ms
コード長 203 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,184 KB
最終ジャッジ日時 2024-04-19 17:54:46
合計ジャッジ時間 19,987 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,624 KB
testcase_01 AC 28 ms
10,624 KB
testcase_02 AC 27 ms
10,752 KB
testcase_03 AC 27 ms
10,752 KB
testcase_04 AC 27 ms
10,752 KB
testcase_05 AC 27 ms
10,752 KB
testcase_06 AC 26 ms
10,752 KB
testcase_07 AC 27 ms
10,624 KB
testcase_08 AC 27 ms
10,624 KB
testcase_09 AC 28 ms
10,752 KB
testcase_10 AC 26 ms
10,752 KB
testcase_11 AC 27 ms
10,752 KB
testcase_12 AC 27 ms
10,624 KB
testcase_13 AC 27 ms
10,752 KB
testcase_14 AC 30 ms
10,624 KB
testcase_15 AC 28 ms
10,752 KB
testcase_16 AC 29 ms
10,752 KB
testcase_17 AC 30 ms
10,624 KB
testcase_18 AC 29 ms
10,624 KB
testcase_19 AC 30 ms
10,752 KB
testcase_20 AC 29 ms
10,752 KB
testcase_21 AC 27 ms
10,752 KB
testcase_22 AC 29 ms
10,624 KB
testcase_23 AC 28 ms
10,752 KB
testcase_24 AC 434 ms
16,704 KB
testcase_25 AC 533 ms
18,024 KB
testcase_26 AC 288 ms
14,336 KB
testcase_27 AC 539 ms
17,924 KB
testcase_28 AC 312 ms
14,976 KB
testcase_29 AC 659 ms
19,016 KB
testcase_30 AC 280 ms
14,976 KB
testcase_31 AC 190 ms
13,312 KB
testcase_32 AC 697 ms
20,144 KB
testcase_33 AC 310 ms
15,488 KB
testcase_34 AC 449 ms
17,276 KB
testcase_35 AC 670 ms
21,164 KB
testcase_36 AC 93 ms
11,904 KB
testcase_37 AC 218 ms
13,440 KB
testcase_38 AC 649 ms
19,148 KB
testcase_39 AC 471 ms
16,984 KB
testcase_40 AC 526 ms
18,740 KB
testcase_41 AC 68 ms
11,264 KB
testcase_42 AC 636 ms
19,980 KB
testcase_43 AC 625 ms
19,072 KB
testcase_44 AC 706 ms
21,000 KB
testcase_45 AC 764 ms
20,992 KB
testcase_46 AC 750 ms
21,184 KB
testcase_47 AC 796 ms
20,868 KB
testcase_48 AC 749 ms
21,124 KB
testcase_49 AC 641 ms
21,120 KB
testcase_50 AC 744 ms
20,920 KB
testcase_51 AC 696 ms
20,868 KB
testcase_52 AC 756 ms
21,052 KB
testcase_53 AC 793 ms
21,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,d=map(int,input().split())
a=[int(input()) for _ in range(n)]
b=a[:]
b.sort()
from bisect import bisect_left,bisect_right
for aa in a:
  if aa-d>=0:
    print(bisect_right(b,aa-d))
  else:
    print(0)
0