#P1258. 小车问题
小车问题
Description
Two people, Jia and Yi, start from point A at the same time and want to arrive at point B simultaneously as quickly as possible. At the departure time, there is a car at A, but this car can carry only one passenger in addition to the driver. It is known that Jia and Yi have the same walking speed, and it is less than the car’s speed. How should the car be used so that both arrive at point B at the same time as quickly as possible?
Input Format
A single line with three real numbers, representing the distance between points A and B, the walking speed , and the car’s speed .
Output Format
The minimum time for both to arrive at point B simultaneously, rounded to decimal places.
120 5 25
9.600000
Hint
Constraints
For of the testdata, it is guaranteed that .
Translated by ChatGPT 5
京公网安备 11011102002149号