SP2901 GEOPROB - One Geometry Problem
Description
This is a problem of Euclidean Geometry. See the figure below.

Your task is as follows: given the lengths of segments b, c, and d, calculate the length of segment a.
Input Format
The input begins with the number t of test cases in a single line (t
Output Format
For every test case print the length of the segment a, one number per line.