Archer

题意翻译

## 题目描述 小R是一个弓箭手,他正在与 $Zanoes$ 进行弓箭手之间的对决。他们轮流尝试着射中目标,小R先射。小R每次射中目标的概率是 $\frac{a}{b}$ , $Zanoes$ 的概率是 $\frac{c}{d}$。 首先射中目标的人获胜。 请计算小R获胜的概率。 ## 输入输出格式 ### 输入格式: 一行,4个数 $a,b,c,d$。 ### 输出格式: 一个实数,表示小R获胜的概率。 如果你的输出和答案相差在 $10^{-6}$ 以内,将被视为正确答案。 ``` ## 题目描述 小R是一个弓箭手,他正在与 $Zanoes$ 进行弓箭手之间的对决。他们轮流尝试着射中目标,小R先射。小R每次射中目标的概率是 $\frac{a}{b}$ , $Zanoes$ 的概率是 $\frac{c}{d}$。 首先射中目标的人获胜。 请计算小R获胜的概率。 ## 输入输出格式 ### 输入格式: 一行,4个数 $a,b,c,d$。 ### 输出格式: 一个实数,表示小R获胜的概率。 如果你的输出和答案相差在 $10^{-6}$ 以内,将被视为正确答案。 ```

题目描述

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 ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF312B/eecd60ed91fbeebe74e2406ea1a11d26df905945.png) for SmallR while ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF312B/80a3a0e00c79b470772b3be90efd3e0d2e457bd7.png) for Zanoes. The one who shoots in the target first should be the winner. Output the probability that SmallR will win the match.

输入输出格式

输入格式


A single line contains four integers ![](https://cdn.luogu.com.cn/upload/vjudge_pic/CF312B/34a700007ead39e5bd0793e01b8a4820c2e9a741.png).

输出格式


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} $ .

输入输出样例

输入样例 #1

1 2 1 2

输出样例 #1

0.666666666667