結果

問題 No.787 Mice and Traitors(ネズミ達と裏切り者)
ユーザー roknaoroknao
提出日時 2020-07-21 23:21:18
言語 PyPy3
(7.3.15)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 358 bytes
コンパイル時間 704 ms
コンパイル使用メモリ 86,824 KB
実行使用メモリ 89,760 KB
最終ジャッジ日時 2023-08-30 05:01:36
合計ジャッジ時間 4,170 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

from functools import reduce
from fractions import gcd
import math
import bisect
import itertools
import sys
input = sys.stdin.readline
INF = float("inf")


# 処理内容
def main():
    P, Q = map(float, input().split())
    P /= 100
    Q /= 100
    a = P*Q + (1-P)*(1-Q)
    b = P*Q
    R = b / a * 100
    print(R)

if __name__ == '__main__':
    main()
0