結果

問題 No.1110 好きな歌
ユーザー trineutrontrineutron
提出日時 2019-10-23 10:15:59
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 2,466 ms / 5,000 ms
コード長 206 bytes
コンパイル時間 581 ms
コンパイル使用メモリ 77,760 KB
実行使用メモリ 159,372 KB
最終ジャッジ日時 2023-10-11 11:36:23
合計ジャッジ時間 60,921 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
76,484 KB
testcase_01 AC 74 ms
76,576 KB
testcase_02 AC 75 ms
76,376 KB
testcase_03 AC 74 ms
76,388 KB
testcase_04 AC 75 ms
76,408 KB
testcase_05 AC 74 ms
76,420 KB
testcase_06 AC 74 ms
76,292 KB
testcase_07 AC 74 ms
76,156 KB
testcase_08 AC 72 ms
76,408 KB
testcase_09 AC 74 ms
76,088 KB
testcase_10 AC 75 ms
76,404 KB
testcase_11 AC 74 ms
76,092 KB
testcase_12 AC 75 ms
76,176 KB
testcase_13 AC 76 ms
76,344 KB
testcase_14 AC 91 ms
78,792 KB
testcase_15 AC 85 ms
78,352 KB
testcase_16 AC 89 ms
78,624 KB
testcase_17 AC 97 ms
78,956 KB
testcase_18 AC 78 ms
77,292 KB
testcase_19 AC 98 ms
79,092 KB
testcase_20 AC 95 ms
78,740 KB
testcase_21 AC 88 ms
78,712 KB
testcase_22 AC 94 ms
78,684 KB
testcase_23 AC 84 ms
78,336 KB
testcase_24 AC 1,477 ms
127,188 KB
testcase_25 AC 1,754 ms
136,400 KB
testcase_26 AC 944 ms
109,100 KB
testcase_27 AC 1,736 ms
135,596 KB
testcase_28 AC 1,046 ms
112,268 KB
testcase_29 AC 2,027 ms
144,108 KB
testcase_30 AC 1,017 ms
112,264 KB
testcase_31 AC 666 ms
100,248 KB
testcase_32 AC 2,182 ms
151,308 KB
testcase_33 AC 1,173 ms
117,752 KB
testcase_34 AC 1,549 ms
130,440 KB
testcase_35 AC 2,379 ms
159,176 KB
testcase_36 AC 341 ms
89,120 KB
testcase_37 AC 727 ms
102,240 KB
testcase_38 AC 1,983 ms
144,044 KB
testcase_39 AC 1,514 ms
129,044 KB
testcase_40 AC 1,880 ms
141,640 KB
testcase_41 AC 235 ms
85,520 KB
testcase_42 AC 2,153 ms
149,888 KB
testcase_43 AC 2,014 ms
144,344 KB
testcase_44 AC 2,438 ms
158,896 KB
testcase_45 AC 2,408 ms
158,728 KB
testcase_46 AC 2,415 ms
159,308 KB
testcase_47 AC 2,466 ms
158,608 KB
testcase_48 AC 2,390 ms
158,592 KB
testcase_49 AC 2,422 ms
159,372 KB
testcase_50 AC 2,431 ms
158,732 KB
testcase_51 AC 2,455 ms
159,056 KB
testcase_52 AC 2,411 ms
158,616 KB
testcase_53 AC 2,418 ms
158,988 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