結果

問題 No.210 探し物はどこですか?
ユーザー yaoshimaxyaoshimax
提出日時 2015-05-24 19:01:11
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 760 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 77,816 KB
実行使用メモリ 85,408 KB
最終ジャッジ日時 2023-09-20 11:24:05
合計ジャッジ時間 13,729 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 206 ms
80,660 KB
testcase_01 AC 465 ms
82,160 KB
testcase_02 AC 760 ms
85,408 KB
testcase_03 AC 88 ms
79,260 KB
testcase_04 AC 108 ms
80,088 KB
testcase_05 AC 106 ms
79,948 KB
testcase_06 AC 84 ms
78,892 KB
testcase_07 AC 103 ms
79,824 KB
testcase_08 AC 132 ms
80,640 KB
testcase_09 AC 145 ms
81,016 KB
testcase_10 AC 131 ms
80,636 KB
testcase_11 AC 130 ms
80,932 KB
testcase_12 AC 124 ms
80,864 KB
testcase_13 AC 135 ms
81,168 KB
testcase_14 AC 138 ms
80,644 KB
testcase_15 AC 152 ms
80,564 KB
testcase_16 AC 139 ms
80,936 KB
testcase_17 AC 139 ms
80,648 KB
testcase_18 AC 217 ms
82,100 KB
testcase_19 AC 217 ms
81,632 KB
testcase_20 AC 222 ms
82,076 KB
testcase_21 AC 216 ms
82,084 KB
testcase_22 AC 213 ms
82,276 KB
testcase_23 AC 201 ms
81,664 KB
testcase_24 AC 205 ms
81,588 KB
testcase_25 AC 208 ms
82,516 KB
testcase_26 AC 207 ms
81,796 KB
testcase_27 AC 215 ms
82,096 KB
testcase_28 AC 378 ms
81,812 KB
testcase_29 AC 368 ms
81,708 KB
testcase_30 AC 373 ms
81,888 KB
testcase_31 AC 375 ms
81,968 KB
testcase_32 AC 378 ms
82,176 KB
testcase_33 AC 227 ms
82,160 KB
testcase_34 AC 236 ms
83,216 KB
testcase_35 AC 227 ms
82,072 KB
testcase_36 AC 238 ms
81,588 KB
testcase_37 AC 229 ms
82,184 KB
testcase_38 AC 537 ms
83,240 KB
testcase_39 AC 547 ms
83,976 KB
testcase_40 AC 566 ms
83,836 KB
testcase_41 AC 543 ms
85,148 KB
testcase_42 AC 575 ms
84,380 KB
testcase_43 AC 80 ms
78,136 KB
testcase_44 AC 82 ms
77,928 KB
testcase_45 AC 82 ms
77,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from heapq import heappush,heappop
n=int(raw_input())
P=map(int,raw_input().split())
Q=map(int,raw_input().split())
hq=[]
for i,p in enumerate(P):
    heappush(hq,(-p*Q[i]*1.0/100000,i))
ans=0.0
time=1
while True:
   cur,i=heappop(hq)
   ans+=-time*cur
   if -time*cur < 0.000001:
       break
   time+=1
   heappush(hq,(cur*(100-Q[i])/100,i))
print "%.10f"%ans
0