結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 14 ms
5,828 KB
testcase_04 AC 13 ms
5,920 KB
testcase_05 AC 14 ms
5,920 KB
testcase_06 AC 14 ms
5,936 KB
testcase_07 AC 14 ms
5,972 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 12 ms
5,952 KB
testcase_44 AC 14 ms
5,844 KB
testcase_45 AC 13 ms
5,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

ans = 0.0
for i in xrange(1, 1000):
    pq = [p[j] * q[j] for j in xrange(n)]
    j = pq.index(max(pq))
    ans += i * pq[j] / 100000.
    p[j] *= (1 - q[j] / 100.)
print "%.10f" % ans
0