SP2901 GEOPROB - One Geometry Problem

Description

This is a problem of Euclidean Geometry. See the figure below. ![](https://cdn.luogu.com.cn/upload/vjudge_pic/SP2901/3d51d9de3bdeb7830c688ef9fefa5764ec6c1de6.png) 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.