結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 40 ms
5,932 KB
testcase_04 AC 42 ms
5,848 KB
testcase_05 AC 42 ms
5,844 KB
testcase_06 AC 43 ms
5,948 KB
testcase_07 AC 42 ms
5,948 KB
testcase_08 AC 42 ms
5,868 KB
testcase_09 AC 40 ms
5,972 KB
testcase_10 AC 39 ms
5,944 KB
testcase_11 AC 38 ms
5,996 KB
testcase_12 AC 40 ms
5,980 KB
testcase_13 AC 212 ms
5,944 KB
testcase_14 AC 219 ms
5,848 KB
testcase_15 AC 221 ms
5,856 KB
testcase_16 AC 215 ms
5,972 KB
testcase_17 AC 216 ms
5,892 KB
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 TLE -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 TLE -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 AC 21 ms
5,968 KB
testcase_44 AC 39 ms
5,968 KB
testcase_45 AC 39 ms
5,944 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, 10000):
    pq = [p[j] * q[j] / 1000. /100. for j in xrange(n)]
    j = pq.index(max(pq))
    ans += i * pq[j]
    p[j] *= (1 - q[j] / 100.)
print "%.10f" % ans
0