Rainfall is measured in millimeters. The rain is collected in a vertical transparent tube with millimeter markings, and once the rain has stopped falling, one can check the height of the water in the tube.
In our problem, the tube unfortunately has a leak at height
We want to figure out how much rain fell during a particular rainfall.
The first line of the input file contains an integer N (N<40) which denotes the total number of test cases.
The description of each test case is given below:
A line with five positive numbers:
L K T1 T2 H
where
For each test case print one line with two floating point numbers F1 F2 where F1 is the smallest rainfall in millimeters that would result in the given observation, and F2 is the largest rainfall in millimeters that would result in the given observation. Values with either absolute or relative error smaller than 10-6 are acceptable.
2 80.00 0.50 2.00 1.50 80.00 150.00 1.00 100.00 150.00 100.00
80.000000 80.759403 100.000000 100.000000