Driving the Gnu

아직 제출이 없습니다시간 제한2초메모리 제한256 MB

문제

Adam Kazimirovicz is racing his car, the Gnu, at the speed of vv, across the vast cathedral square. Suddenly, a priest appears in his way, trying to fool Adam. The priest is a segment of the length ww, perpendicular to Adam's trajectory, with its center on the trajectory. The initial distance between the car and the priest is dd.

Enter Ostap --- he overrides Adam's panicked driving in an attempt to avoid the collision with the priest. For this purpose, he can accelerate the car at every moment in any direction. Note that at different moments in time, both the module and the direction of the acceleration can be changed. However, Ostap is not omnipotent; hence, the acceleration magnitude at each moment in time cannot be greater than aa.

Find the minimal possible value of aa sufficient to avoid the collision.

입력

The first line of the input file contains an integer TT --- the number of test cases (1T51041 \le T \le 5 \cdot 10^4).

The following TT lines each contain three integers vv, dd and ww --- the initial velocity of the car, the initial distance from the Gnu to the priest, and the length of the segment (1v,d,w10001 \le v, d, w \le 1000).

출력

The output file must contain TT lines, the iith line must contain the answer to the iith test case. The answer is the minimal possible value of aa sufficient to avoid a collision.

The absolute or relative error of each answer must not be greater than 101010^{-10}.