結果

問題 No.1110 好きな歌
ユーザー pluto77pluto77
提出日時 2020-07-11 11:33:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 803 ms / 5,000 ms
コード長 170 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,180 KB
最終ジャッジ日時 2024-04-20 22:19:32
合計ジャッジ時間 19,992 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,624 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 27 ms
10,624 KB
testcase_03 AC 28 ms
10,752 KB
testcase_04 AC 27 ms
10,752 KB
testcase_05 AC 26 ms
10,752 KB
testcase_06 AC 27 ms
10,624 KB
testcase_07 AC 27 ms
10,752 KB
testcase_08 AC 26 ms
10,624 KB
testcase_09 AC 27 ms
10,752 KB
testcase_10 AC 26 ms
10,624 KB
testcase_11 AC 26 ms
10,752 KB
testcase_12 AC 26 ms
10,624 KB
testcase_13 AC 27 ms
10,624 KB
testcase_14 AC 28 ms
10,752 KB
testcase_15 AC 27 ms
10,752 KB
testcase_16 AC 29 ms
10,752 KB
testcase_17 AC 28 ms
10,752 KB
testcase_18 AC 27 ms
10,752 KB
testcase_19 AC 28 ms
10,752 KB
testcase_20 AC 30 ms
10,624 KB
testcase_21 AC 29 ms
10,752 KB
testcase_22 AC 29 ms
10,624 KB
testcase_23 AC 27 ms
10,752 KB
testcase_24 AC 459 ms
16,708 KB
testcase_25 AC 545 ms
18,032 KB
testcase_26 AC 291 ms
14,464 KB
testcase_27 AC 538 ms
17,928 KB
testcase_28 AC 317 ms
14,976 KB
testcase_29 AC 659 ms
19,268 KB
testcase_30 AC 321 ms
15,104 KB
testcase_31 AC 203 ms
13,312 KB
testcase_32 AC 699 ms
20,012 KB
testcase_33 AC 349 ms
15,616 KB
testcase_34 AC 479 ms
17,536 KB
testcase_35 AC 706 ms
21,164 KB
testcase_36 AC 100 ms
11,904 KB
testcase_37 AC 229 ms
13,440 KB
testcase_38 AC 636 ms
19,276 KB
testcase_39 AC 484 ms
16,992 KB
testcase_40 AC 580 ms
18,868 KB
testcase_41 AC 69 ms
11,264 KB
testcase_42 AC 666 ms
19,976 KB
testcase_43 AC 642 ms
19,196 KB
testcase_44 AC 761 ms
20,988 KB
testcase_45 AC 771 ms
20,988 KB
testcase_46 AC 759 ms
21,180 KB
testcase_47 AC 791 ms
20,988 KB
testcase_48 AC 800 ms
21,116 KB
testcase_49 AC 716 ms
21,120 KB
testcase_50 AC 768 ms
20,932 KB
testcase_51 AC 732 ms
20,988 KB
testcase_52 AC 761 ms
20,920 KB
testcase_53 AC 803 ms
21,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki1110
from bisect import *
n,d=map(int,input().split())
a=[]
for i in range(n):
 a.append(int(input()))
b=sorted(a)
for i in range(n):
 print(bisect_right(b,a[i]-d))
0