結果
問題 | No.787 Mice and Traitors(ネズミ達と裏切り者) |
ユーザー | 👑 rin204 |
提出日時 | 2022-07-09 15:52:40 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 147 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 87,148 KB |
実行使用メモリ | 79,376 KB |
最終ジャッジ日時 | 2023-08-29 23:14:04 |
合計ジャッジ時間 | 2,530 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 68 ms
71,156 KB |
testcase_01 | RE | - |
testcase_02 | AC | 74 ms
71,264 KB |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | AC | 73 ms
71,284 KB |
ソースコード
p, q = map(int, input().split()) p /= 100 q /= 100 x = p * q y = (1 - p) * (1 - q) if x + y == 0: print(100) else: print(x / (x + y) * 100)