結果

問題 No.787 Mice and Traitors(ネズミ達と裏切り者)
ユーザー roknao
提出日時 2020-07-21 23:21:18
言語 PyPy3
(7.3.15)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 358 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 82,208 KB
実行使用メモリ 88,880 KB
最終ジャッジ日時 2024-12-31 13:58:40
合計ジャッジ時間 2,794 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 10
権限があれば一括ダウンロードができます

ソースコード

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