結果

問題 No.1110 好きな歌
ユーザー trineutrontrineutron
提出日時 2019-10-23 10:14:23
言語 Python2
(2.7.18)
結果
AC  
実行時間 1,778 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 849 ms
コンパイル使用メモリ 6,644 KB
実行使用メモリ 45,776 KB
最終ジャッジ日時 2023-10-11 11:32:43
合計ジャッジ時間 41,444 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,132 KB
testcase_01 AC 12 ms
5,988 KB
testcase_02 AC 12 ms
6,072 KB
testcase_03 AC 11 ms
6,072 KB
testcase_04 AC 12 ms
6,068 KB
testcase_05 AC 12 ms
6,020 KB
testcase_06 AC 11 ms
6,148 KB
testcase_07 AC 11 ms
5,996 KB
testcase_08 AC 11 ms
6,028 KB
testcase_09 AC 12 ms
6,236 KB
testcase_10 AC 11 ms
5,988 KB
testcase_11 AC 12 ms
6,124 KB
testcase_12 AC 11 ms
5,984 KB
testcase_13 AC 11 ms
6,124 KB
testcase_14 AC 15 ms
6,036 KB
testcase_15 AC 13 ms
6,208 KB
testcase_16 AC 15 ms
6,052 KB
testcase_17 AC 17 ms
6,228 KB
testcase_18 AC 12 ms
6,132 KB
testcase_19 AC 17 ms
6,188 KB
testcase_20 AC 17 ms
6,244 KB
testcase_21 AC 13 ms
6,068 KB
testcase_22 AC 16 ms
6,344 KB
testcase_23 AC 13 ms
6,208 KB
testcase_24 AC 1,023 ms
28,428 KB
testcase_25 AC 1,241 ms
33,136 KB
testcase_26 AC 617 ms
20,568 KB
testcase_27 AC 1,230 ms
33,192 KB
testcase_28 AC 696 ms
21,464 KB
testcase_29 AC 1,443 ms
38,500 KB
testcase_30 AC 678 ms
20,792 KB
testcase_31 AC 402 ms
15,148 KB
testcase_32 AC 1,626 ms
41,752 KB
testcase_33 AC 776 ms
22,760 KB
testcase_34 AC 1,077 ms
29,808 KB
testcase_35 AC 1,718 ms
41,756 KB
testcase_36 AC 168 ms
9,736 KB
testcase_37 AC 445 ms
16,724 KB
testcase_38 AC 1,421 ms
37,972 KB
testcase_39 AC 1,075 ms
29,872 KB
testcase_40 AC 1,375 ms
34,164 KB
testcase_41 AC 98 ms
8,136 KB
testcase_42 AC 1,602 ms
38,828 KB
testcase_43 AC 1,439 ms
37,776 KB
testcase_44 AC 1,726 ms
42,772 KB
testcase_45 AC 1,753 ms
44,432 KB
testcase_46 AC 1,754 ms
43,680 KB
testcase_47 AC 1,777 ms
45,776 KB
testcase_48 AC 1,772 ms
44,268 KB
testcase_49 AC 1,679 ms
41,044 KB
testcase_50 AC 1,744 ms
44,092 KB
testcase_51 AC 1,736 ms
43,332 KB
testcase_52 AC 1,778 ms
44,236 KB
testcase_53 AC 1,776 ms
45,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
n,d=map(int,raw_input().split())
a=[(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