結果

問題 No.210 探し物はどこですか?
ユーザー roiti46roiti46
提出日時 2015-10-06 00:36:26
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 716 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 77,920 KB
実行使用メモリ 84,836 KB
最終ジャッジ日時 2023-09-27 07:26:56
合計ジャッジ時間 12,757 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 190 ms
80,620 KB
testcase_01 AC 448 ms
82,156 KB
testcase_02 AC 716 ms
84,836 KB
testcase_03 AC 83 ms
79,064 KB
testcase_04 AC 102 ms
80,296 KB
testcase_05 AC 97 ms
80,392 KB
testcase_06 AC 79 ms
79,064 KB
testcase_07 AC 95 ms
80,320 KB
testcase_08 AC 113 ms
80,964 KB
testcase_09 AC 133 ms
80,608 KB
testcase_10 AC 115 ms
80,648 KB
testcase_11 AC 117 ms
80,604 KB
testcase_12 AC 122 ms
80,700 KB
testcase_13 AC 125 ms
80,636 KB
testcase_14 AC 129 ms
81,004 KB
testcase_15 AC 130 ms
81,064 KB
testcase_16 AC 131 ms
81,100 KB
testcase_17 AC 129 ms
80,856 KB
testcase_18 AC 193 ms
81,528 KB
testcase_19 AC 207 ms
82,428 KB
testcase_20 AC 195 ms
81,176 KB
testcase_21 AC 195 ms
80,980 KB
testcase_22 AC 198 ms
81,880 KB
testcase_23 AC 192 ms
82,168 KB
testcase_24 AC 201 ms
82,732 KB
testcase_25 AC 196 ms
81,492 KB
testcase_26 AC 204 ms
82,588 KB
testcase_27 AC 210 ms
82,304 KB
testcase_28 AC 355 ms
82,032 KB
testcase_29 AC 362 ms
82,376 KB
testcase_30 AC 348 ms
82,312 KB
testcase_31 AC 354 ms
83,156 KB
testcase_32 AC 347 ms
82,096 KB
testcase_33 AC 214 ms
82,456 KB
testcase_34 AC 217 ms
81,512 KB
testcase_35 AC 211 ms
82,984 KB
testcase_36 AC 222 ms
82,284 KB
testcase_37 AC 212 ms
82,928 KB
testcase_38 AC 518 ms
82,972 KB
testcase_39 AC 519 ms
83,340 KB
testcase_40 AC 529 ms
83,072 KB
testcase_41 AC 517 ms
83,576 KB
testcase_42 AC 519 ms
83,720 KB
testcase_43 AC 75 ms
78,116 KB
testcase_44 AC 76 ms
78,220 KB
testcase_45 AC 81 ms
78,004 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