結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,100 KB
testcase_01 AC 12 ms
5,976 KB
testcase_02 AC 12 ms
6,056 KB
testcase_03 AC 11 ms
5,968 KB
testcase_04 AC 12 ms
6,108 KB
testcase_05 AC 11 ms
6,220 KB
testcase_06 AC 12 ms
5,992 KB
testcase_07 AC 12 ms
6,020 KB
testcase_08 AC 11 ms
6,064 KB
testcase_09 AC 11 ms
5,996 KB
testcase_10 AC 11 ms
6,088 KB
testcase_11 AC 11 ms
6,100 KB
testcase_12 AC 11 ms
6,108 KB
testcase_13 AC 11 ms
6,256 KB
testcase_14 AC 15 ms
6,036 KB
testcase_15 AC 14 ms
6,112 KB
testcase_16 AC 15 ms
6,212 KB
testcase_17 AC 17 ms
6,280 KB
testcase_18 AC 12 ms
6,224 KB
testcase_19 AC 18 ms
6,172 KB
testcase_20 AC 17 ms
6,120 KB
testcase_21 AC 14 ms
6,016 KB
testcase_22 AC 16 ms
6,112 KB
testcase_23 AC 13 ms
6,004 KB
testcase_24 AC 1,007 ms
28,484 KB
testcase_25 AC 1,236 ms
33,160 KB
testcase_26 AC 621 ms
20,560 KB
testcase_27 AC 1,220 ms
33,256 KB
testcase_28 AC 677 ms
21,432 KB
testcase_29 AC 1,459 ms
38,548 KB
testcase_30 AC 678 ms
20,808 KB
testcase_31 AC 405 ms
15,360 KB
testcase_32 AC 1,625 ms
41,600 KB
testcase_33 AC 771 ms
22,648 KB
testcase_34 AC 1,070 ms
29,728 KB
testcase_35 AC 1,705 ms
41,692 KB
testcase_36 AC 169 ms
9,604 KB
testcase_37 AC 443 ms
16,944 KB
testcase_38 AC 1,413 ms
38,148 KB
testcase_39 AC 1,049 ms
29,948 KB
testcase_40 AC 1,331 ms
34,200 KB
testcase_41 AC 98 ms
8,248 KB
testcase_42 AC 1,555 ms
38,700 KB
testcase_43 AC 1,437 ms
37,668 KB
testcase_44 AC 1,757 ms
42,712 KB
testcase_45 AC 1,765 ms
44,404 KB
testcase_46 AC 1,760 ms
43,784 KB
testcase_47 AC 1,770 ms
45,720 KB
testcase_48 AC 1,754 ms
44,124 KB
testcase_49 AC 1,701 ms
41,220 KB
testcase_50 AC 1,750 ms
44,052 KB
testcase_51 AC 1,713 ms
43,224 KB
testcase_52 AC 1,771 ms
44,196 KB
testcase_53 AC 1,788 ms
45,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import bisect
n,d=map(int,raw_input().split())
a=sorted([(input(),i)for i in range(n)])
x=[0]*n
for i in range(n):x[a[i][1]]=bisect.bisect_left(a,(a[i][0]-d,2000000000))
for i in x:print(i)
0