結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,156 KB
testcase_01 AC 83 ms
15,020 KB
testcase_02 AC 84 ms
15,260 KB
testcase_03 AC 86 ms
15,072 KB
testcase_04 AC 84 ms
15,148 KB
testcase_05 AC 84 ms
15,132 KB
testcase_06 AC 85 ms
15,132 KB
testcase_07 AC 84 ms
15,224 KB
testcase_08 AC 84 ms
15,152 KB
testcase_09 AC 84 ms
15,280 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