Two riders A and B are travelling on a highway towards each other on two roads that intersect at right angle at speeds VAmeters/second and VB meters/second. A is at a distance of ‘x’ meters and B is at a distance of ‘y’ meters from the intersection. Calculate the minimum distance between these two riders that is possible.
First line contains the distance of Rider A from intersection denoted by x Second line contains the distance of Rider B from intersection denoted by y Third line contains the Velocity of Rider A denoted by VA Fourth line contains the Velocity of Rider B denoted by VB
Print the minimum distance between these two riders, if minimum distance is non-zero. If minimum distance is zero, print it as 0.0
x > 0
y > 0
VA > 0
VB > 0
Calculation and printing of output should be done upto 11-precision