結果

問題 No.210 探し物はどこですか?
ユーザー roiti46roiti46
提出日時 2015-10-06 00:14:32
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,604 KB
実行使用メモリ 6,432 KB
最終ジャッジ日時 2023-09-27 07:09:24
合計ジャッジ時間 38,364 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 743 ms
6,092 KB
testcase_01 AC 863 ms
6,240 KB
testcase_02 WA -
testcase_03 AC 695 ms
6,192 KB
testcase_04 AC 687 ms
6,188 KB
testcase_05 AC 646 ms
6,136 KB
testcase_06 AC 648 ms
6,156 KB
testcase_07 AC 671 ms
6,080 KB
testcase_08 AC 564 ms
6,156 KB
testcase_09 AC 593 ms
6,060 KB
testcase_10 AC 557 ms
6,140 KB
testcase_11 AC 600 ms
6,172 KB
testcase_12 AC 619 ms
6,068 KB
testcase_13 AC 722 ms
6,188 KB
testcase_14 AC 826 ms
6,148 KB
testcase_15 AC 823 ms
6,096 KB
testcase_16 AC 806 ms
6,172 KB
testcase_17 AC 885 ms
6,088 KB
testcase_18 AC 687 ms
6,176 KB
testcase_19 AC 704 ms
6,204 KB
testcase_20 AC 709 ms
6,196 KB
testcase_21 AC 685 ms
6,228 KB
testcase_22 AC 703 ms
6,204 KB
testcase_23 AC 847 ms
6,264 KB
testcase_24 AC 827 ms
6,276 KB
testcase_25 AC 834 ms
6,192 KB
testcase_26 AC 839 ms
6,280 KB
testcase_27 AC 851 ms
6,192 KB
testcase_28 AC 879 ms
6,236 KB
testcase_29 AC 843 ms
6,164 KB
testcase_30 AC 828 ms
6,168 KB
testcase_31 AC 838 ms
6,268 KB
testcase_32 AC 820 ms
6,160 KB
testcase_33 AC 898 ms
6,376 KB
testcase_34 AC 906 ms
6,316 KB
testcase_35 AC 921 ms
6,308 KB
testcase_36 AC 939 ms
6,352 KB
testcase_37 AC 915 ms
6,360 KB
testcase_38 AC 955 ms
6,364 KB
testcase_39 AC 907 ms
6,400 KB
testcase_40 AC 938 ms
6,336 KB
testcase_41 AC 936 ms
6,352 KB
testcase_42 AC 934 ms
6,308 KB
testcase_43 AC 367 ms
6,136 KB
testcase_44 AC 644 ms
6,168 KB
testcase_45 AC 704 ms
6,112 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import heapq
n = int(raw_input())
p = map(int, raw_input().split())
q = map(int, 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)
for i in xrange(1, 500000):
    pq, j = heapq.heappop(que)
    ans += -i * pq
    p[j] *= (1 - q[j])
    heapq.heappush(que, [-p[j] * q[j], j])
print "%.10f" % (ans / 1000.)
0