You are given a right triangle where angle is the right angle and is perpendicular to . The values of and are given in the input. All you need to do is finding out the value of . Can you do the easiest job here? Yes, you can. I have firm faith on you.
First line will contain an integer (), the number of test cases and the following lines will contain exactly two integers , ().
You have to print a number for every test case in a separate line which denotes the value of . Your answer will be considered as correct if its absolute or relative error does not exceed .
Formally, let your answer be , and jury's answer be , your answer is accepted if and only if .
Input | Output |
---|---|
2 5 5 9 12 | 12.500000 46.440000 |