結果

問題 No.787 Mice and Traitors(ネズミ達と裏切り者)
ユーザー betrue12betrue12
提出日時 2019-02-08 21:59:20
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 71 ms / 2,000 ms
コード長 97 bytes
コンパイル時間 215 ms
使用メモリ 13,952 KB
最終ジャッジ日時 2023-01-28 15:46:41
合計ジャッジ時間 1,691 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 70 ms
13,868 KB
testcase_01 AC 68 ms
13,716 KB
testcase_02 AC 69 ms
13,832 KB
testcase_03 AC 70 ms
13,836 KB
testcase_04 AC 71 ms
13,808 KB
testcase_05 AC 70 ms
13,952 KB
testcase_06 AC 71 ms
13,856 KB
testcase_07 AC 68 ms
13,864 KB
testcase_08 AC 70 ms
13,856 KB
testcase_09 AC 69 ms
13,864 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

P, Q = gets.split.map(&:to_f)

a = P*Q
b = (100-P)*(100-Q)
puts sprintf("%.20f", 100 * a / (a+b))
0