Very easy

Execution time limit is 1 second

Runtime memory usage limit is 64 megabytes

At the origin guns and shooting balls of ping-pong. At some distance R from it, parallel to the axis ОХ, is a brick wall of infinite length. Between the wall and the axis OX is objective point with coordinates (X,Y). Required to target the gun so that the ball hit his first against the wall, then hit the target. Determine the shortest distance from the axis OY to the point of collision of the ball with the wall.

The first line of the input file contains a number of tests. For each test on a separate line contains three integers, R, X and Y (-10<=X<=10, 0<=Y<R<=10), separated by spaces.

For each test in a separate line shows the distance in a straight line from the axis OY to the point of impact of the ball against the wall up to two decimal places.

Input #1

Answer #1