結果

問題 No.1110 好きな歌
ユーザー trineutrontrineutron
提出日時 2019-10-23 10:01:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 769 ms / 5,000 ms
コード長 238 bytes
コンパイル時間 1,184 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 87,924 KB
最終ジャッジ日時 2023-10-11 11:30:41
合計ジャッジ時間 22,791 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,284 KB
testcase_01 AC 74 ms
71,608 KB
testcase_02 AC 75 ms
71,312 KB
testcase_03 AC 74 ms
71,376 KB
testcase_04 AC 77 ms
71,404 KB
testcase_05 AC 75 ms
71,412 KB
testcase_06 AC 74 ms
71,408 KB
testcase_07 AC 74 ms
71,384 KB
testcase_08 AC 74 ms
71,412 KB
testcase_09 AC 74 ms
71,336 KB
testcase_10 AC 74 ms
71,264 KB
testcase_11 AC 75 ms
71,280 KB
testcase_12 AC 74 ms
71,140 KB
testcase_13 AC 76 ms
71,544 KB
testcase_14 AC 91 ms
75,996 KB
testcase_15 AC 85 ms
75,368 KB
testcase_16 AC 89 ms
76,232 KB
testcase_17 AC 96 ms
76,064 KB
testcase_18 AC 76 ms
71,448 KB
testcase_19 AC 97 ms
76,648 KB
testcase_20 AC 94 ms
75,892 KB
testcase_21 AC 85 ms
75,500 KB
testcase_22 AC 93 ms
76,104 KB
testcase_23 AC 81 ms
75,536 KB
testcase_24 AC 475 ms
83,684 KB
testcase_25 AC 565 ms
84,640 KB
testcase_26 AC 336 ms
81,680 KB
testcase_27 AC 558 ms
84,496 KB
testcase_28 AC 361 ms
81,796 KB
testcase_29 AC 642 ms
85,560 KB
testcase_30 AC 344 ms
82,140 KB
testcase_31 AC 252 ms
80,292 KB
testcase_32 AC 693 ms
86,644 KB
testcase_33 AC 378 ms
82,588 KB
testcase_34 AC 495 ms
83,916 KB
testcase_35 AC 734 ms
87,600 KB
testcase_36 AC 167 ms
78,748 KB
testcase_37 AC 276 ms
80,168 KB
testcase_38 AC 635 ms
86,280 KB
testcase_39 AC 498 ms
84,228 KB
testcase_40 AC 593 ms
85,056 KB
testcase_41 AC 147 ms
78,424 KB
testcase_42 AC 679 ms
86,068 KB
testcase_43 AC 639 ms
85,672 KB
testcase_44 AC 749 ms
87,576 KB
testcase_45 AC 767 ms
87,660 KB
testcase_46 AC 759 ms
87,872 KB
testcase_47 AC 769 ms
87,844 KB
testcase_48 AC 756 ms
87,584 KB
testcase_49 AC 728 ms
87,924 KB
testcase_50 AC 748 ms
87,404 KB
testcase_51 AC 742 ms
87,708 KB
testcase_52 AC 749 ms
87,636 KB
testcase_53 AC 761 ms
87,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect

n, d = map(int, input().split())
a = [(int(input()), i) for i in range(n)]
a.sort()
ans = [0] * n
for i in range(n):
    ans[a[i][1]] = bisect.bisect_left(a, (a[i][0] - d, 2000000000))

for i in range(n):
    print(ans[i])
0