結果

問題 No.787 Mice and Traitors(ネズミ達と裏切り者)
ユーザー nebukuro09nebukuro09
提出日時 2019-02-08 21:46:32
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 169 bytes
コンパイル時間 396 ms
コンパイル使用メモリ 6,516 KB
実行使用メモリ 7,856 KB
最終ジャッジ日時 2023-09-11 04:12:58
合計ジャッジ時間 1,799 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
7,708 KB
testcase_01 RE -
testcase_02 AC 23 ms
7,624 KB
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 23 ms
7,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction as f

P, Q = map(int, raw_input().split())

A = f(P, 100) * f(Q, 100)
B = A + f(100-P, 100) * f(100-Q,100)

print "%.10f" % (A / B * 100)
0