結果

問題 No.210 探し物はどこですか?
ユーザー roiti46roiti46
提出日時 2015-10-06 00:35:17
言語 PyPy2
(7.3.15)
結果
TLE  
実行時間 -
コード長 377 bytes
コンパイル時間 218 ms
コンパイル使用メモリ 78,016 KB
実行使用メモリ 91,772 KB
最終ジャッジ日時 2023-09-27 07:26:31
合計ジャッジ時間 19,813 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 265 ms
80,932 KB
testcase_01 AC 1,114 ms
83,252 KB
testcase_02 TLE -
testcase_03 AC 83 ms
79,412 KB
testcase_04 AC 103 ms
79,916 KB
testcase_05 AC 101 ms
80,052 KB
testcase_06 AC 80 ms
78,664 KB
testcase_07 AC 103 ms
80,044 KB
testcase_08 AC 124 ms
81,076 KB
testcase_09 AC 129 ms
80,780 KB
testcase_10 AC 123 ms
81,060 KB
testcase_11 AC 124 ms
80,836 KB
testcase_12 AC 129 ms
80,868 KB
testcase_13 AC 134 ms
80,568 KB
testcase_14 AC 134 ms
80,688 KB
testcase_15 AC 132 ms
80,648 KB
testcase_16 AC 131 ms
80,860 KB
testcase_17 AC 130 ms
81,476 KB
testcase_18 AC 205 ms
81,156 KB
testcase_19 AC 212 ms
80,756 KB
testcase_20 AC 203 ms
80,700 KB
testcase_21 AC 208 ms
80,740 KB
testcase_22 AC 205 ms
81,044 KB
testcase_23 AC 166 ms
81,228 KB
testcase_24 AC 160 ms
81,228 KB
testcase_25 AC 162 ms
81,748 KB
testcase_26 AC 159 ms
81,080 KB
testcase_27 AC 186 ms
81,472 KB
testcase_28 AC 658 ms
82,772 KB
testcase_29 AC 656 ms
81,944 KB
testcase_30 AC 654 ms
82,216 KB
testcase_31 AC 668 ms
82,336 KB
testcase_32 AC 652 ms
82,212 KB
testcase_33 AC 212 ms
81,580 KB
testcase_34 AC 217 ms
81,064 KB
testcase_35 AC 207 ms
81,096 KB
testcase_36 AC 225 ms
81,796 KB
testcase_37 AC 215 ms
81,376 KB
testcase_38 AC 1,158 ms
84,576 KB
testcase_39 AC 1,178 ms
84,568 KB
testcase_40 AC 1,232 ms
85,236 KB
testcase_41 AC 1,154 ms
84,316 KB
testcase_42 AC 1,199 ms
84,512 KB
testcase_43 AC 80 ms
78,328 KB
testcase_44 AC 76 ms
77,932 KB
testcase_45 AC 79 ms
78,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import heapq
n = int(raw_input())
p = map(int, raw_input().split())
q = map(int, raw_input().split())

que = [[-p[i] * q[i] * 1.0 / 100000.0, i] for i in xrange(n)]
heapq.heapify(que)
ans = 0.0
i = 1
while 1:
    pq, j = heapq.heappop(que)
    ans += -i * pq
    if -i * pq < 0.000001: break
    heapq.heappush(que, [pq * (100 - q[j]) / 100, j])
    i += 1
print "%.10f" % ans
0