結果

問題 No.210 探し物はどこですか?
ユーザー roiti46roiti46
提出日時 2015-10-06 00:21:34
言語 PyPy2
(7.3.15)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 1,495 ms
コンパイル使用メモリ 77,572 KB
実行使用メモリ 83,124 KB
最終ジャッジ日時 2023-09-27 07:13:14
合計ジャッジ時間 22,854 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 394 ms
80,616 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 382 ms
80,700 KB
testcase_04 AC 371 ms
80,776 KB
testcase_05 AC 347 ms
80,972 KB
testcase_06 AC 344 ms
80,560 KB
testcase_07 AC 363 ms
80,676 KB
testcase_08 AC 291 ms
80,944 KB
testcase_09 AC 297 ms
80,912 KB
testcase_10 AC 295 ms
81,016 KB
testcase_11 AC 294 ms
81,016 KB
testcase_12 AC 297 ms
80,696 KB
testcase_13 AC 424 ms
81,292 KB
testcase_14 AC 425 ms
80,684 KB
testcase_15 AC 449 ms
81,124 KB
testcase_16 AC 441 ms
81,232 KB
testcase_17 AC 468 ms
81,136 KB
testcase_18 AC 395 ms
81,436 KB
testcase_19 AC 405 ms
80,788 KB
testcase_20 AC 403 ms
80,740 KB
testcase_21 AC 398 ms
80,832 KB
testcase_22 AC 402 ms
81,216 KB
testcase_23 AC 524 ms
81,548 KB
testcase_24 AC 525 ms
82,020 KB
testcase_25 AC 532 ms
82,052 KB
testcase_26 AC 538 ms
81,604 KB
testcase_27 AC 536 ms
82,228 KB
testcase_28 AC 493 ms
81,624 KB
testcase_29 AC 506 ms
81,516 KB
testcase_30 AC 503 ms
81,848 KB
testcase_31 AC 503 ms
81,944 KB
testcase_32 AC 498 ms
81,780 KB
testcase_33 AC 596 ms
82,664 KB
testcase_34 AC 591 ms
83,084 KB
testcase_35 AC 584 ms
82,516 KB
testcase_36 AC 593 ms
83,016 KB
testcase_37 AC 586 ms
83,124 KB
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 92 ms
79,784 KB
testcase_44 AC 363 ms
80,084 KB
testcase_45 AC 401 ms
80,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import heapq
n = int(raw_input())
p = map(float, raw_input().split())
q = map(float, raw_input().split())
q = [q[i] / 100. for i in xrange(n)]
ans = 0.0
que = [[-p[i] * q[i], i] for i in xrange(n)]
heapq.heapify(que)
i = 1
while i < 300000:
    pq, j = heapq.heappop(que)
    ans += -i * pq
    p[j] *= (1.0 - q[j])
    heapq.heappush(que, [-p[j] * q[j], j])
    i += 1
print "%.10f" % (ans / 1000.)
0