Problem Description
One day , Teddy and WhereIsHeroFrom want to pay a visit to their friend yifenfei who are in another city.They own a car ,but the car is so small that it can only contains two people.But both Teddy and WhereIsHeroFrom can't drive a car,so they needs a driver to help them.
Now give you the speed of Teddy and WhereIsHeroFrom , and the speed of the car ,you are asked to worked out the least time Teddy and WhereIsHeroFrom need to spend if they want to reach yifenfei's home at the same time.You may suppose if one gets off the car ,the driver can turn around to carry the other one .
Input
Each line will contain three integers A (0<A<=1000), B(0<B<=10000) and C(0<C<=10^9). A stands for the speed of Teddy and WhereIsHeroFrom ,B stands for the speed of the car,C stands for the distance between the two cities .Process to end of file.
Output
For each case, output the least needed time in one line,accurate to three decimal places.
Sample Input
1 2 1
Sample Output
0.700
将题目翻译并提出出问题
特迪和艾瑟罗要去另一个城市的朋友伊芬菲家,但他们只有一辆只能坐两个人的车,且他们两人都不会开车,因此他们需要请一个司机帮忙开车。现在给出特迪和艾瑟罗步行的速度和车的行驶速度和两城市之间距离,特迪和艾瑟罗同时出发,中途先坐车的人下车,司机回头接另一个人,问两人同时到达伊芬菲家所需的最短时间。
输入
每一行包含三个整数A(0<A<=1000),B(0<B<=10000) 和C(0<C<=10^9)。A代表特迪和艾瑟罗的速度,B代表车速,C代表两个城市之间的距离。处理到文件末尾。
输出
对于每一种情况,在一行中输出所需要的最少时间,精确到小数点后三位。
例如,输入
1 2 1
输出
0.700