A Car Problem was moved from J1 to J2. In fact, he is so angry he decides roll a snowball from the top of a hill to 's house! Can you help him find the time it takes for the snowball to hit 's house?
is very unhappy thatAssume the mass and radius of the snowball does not change during its descent, and the snowball rolls without slipping. The snowball has an initial velocity of 0.
Assume the hill is an infinite plane at an angle of radians. The snowball reaches the bottom of the hill when it has travelled metres downwards.
Assume no energy is lost to air resistance or friction. All values are in SI units, and .
Input Specification
The first line will contain the real numbers , .
The second line will contain the real numbers , .
will have at most 12 decimal places, and all other values will have at most 4 decimal places.
Output Specification
The time it takes for the snowball to reach the bottom of the hill. Outputs with a relative or absolute error of will be accepted.
Sample Input
4.0 5.0
1.0 0.3
Sample Output
1.807828
Comments