Codeforces Round 185 (Div. 2)
B
Archer
Codeforces
1300
原题
← AC →
翻译中…

SmallR is an archer. SmallR is taking a match of archer with Zanoes. They try to shoot in the target in turns, and SmallR shoots first. The probability of shooting the target each time is image for SmallR while image for Zanoes. The one who shoots in the target first should be the winner.

翻译中…

Output the probability that SmallR will win the match.

翻译中…

Input

翻译中…

A single line contains four integers image.

翻译中…

Output

翻译中…

Print a single real number, the probability that SmallR will win the match.

翻译中…

The answer will be considered correct if the absolute or relative error doesn't exceed $10^{ - 6}$.

翻译中…

样例

Input #1
1 2 1 2
Output #1
0.666666666667
InputCopy OutputCopy
题目信息
题号
312B
时间限制
2 s
内存限制
256 MB
标签
数学
概率论

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。