B - 蒸気圧 解説 /

実行時間制限: 2 sec / メモリ制限: 1024 MB

配点 : 8

注意

この問題に対する言及は、2021/7/17 18:00 JST まで禁止されています。言及がなされた場合、賠償が請求される可能性があります。 試験後に総合得点や認定級を公表するのは構いませんが、どの問題が解けたかなどの情報は発信しないようにお願いします。

問題文

A 個のボールと B 個の風船があります。 高橋君はボールの数が風船の数の C 倍以下になるまで 1 つずつボールを取り除いていきます。 最終的に残ったボールの数を風船の数で割った値を求めてください。

制約

  • 1 \leq A,B,C \leq 10^4
  • A,B,C は整数

入力

入力は以下の形式で標準入力から与えられる。

A B C

出力

答えを出力せよ。
なお、想定解答との絶対誤差または相対誤差が 10^{-6} 以下であれば正解として扱われる。


入力例 1

8 3 2

出力例 1

2.000000000000000

最初ボールは 8 個あります。
高橋君はボールが 3\times 2=6 個以下になるまでボールを取り除き、最終的にボールは 6 個残ります。
よって、答えは \frac{6}{3}=2 となります。


入力例 2

8 5 2

出力例 2

1.600000000000000

最初の時点で 8\leq 5\times 2 であるので高橋君はボールを 1 つも取り除きません。
よって、答えは \frac{8}{5}=1.6 となります。

Score : 8 points

Warning

Do not make any mention of this problem until July 17, 2021, 6:00 p.m. JST. In case of violation, compensation may be demanded. After the examination, you can reveal your total score and grade to others, but nothing more (for example, which problems you solved).

Problem Statement

We have A balls and B balloons. Takahashi will repeatedly remove one ball until the number of balls is at most C times the number of balloons. Find the number of balls that will eventually remain, divided by the number of balloons.

Constraints

  • 1 \leq A,B,C \leq 10^4
  • A, B, and C are integers.

Input

Input is given from Standard Input in the following format:

A B C

Output

Print the answer.
It will be considered correct when its absolute or relative error from our answer is at most 10^{-6}.


Sample Input 1

8 3 2

Sample Output 1

2.000000000000000

Initially, we have 8 balls.
Takahashi will repeatedly remove a ball until we have not more than 6 balls, after which we will have 6 balls.
Thus, the answer is \frac{6}{3}=2.


Sample Input 2

8 5 2

Sample Output 2

1.600000000000000

We already have 8\leq 5\times 2 in the beginning, so Takahashi will not remove any ball.
Thus, the answer is \frac{8}{5}=1.6.