#C6461. Calculate Straight-Line Distance

    ID: 50224 Type: Default 1000ms 256MiB

Calculate Straight-Line Distance

Calculate Straight-Line Distance

You are given several pairs of points in a 2D plane. For each pair, compute the straight-line (Euclidean) distance between the two points.

The distance between two points \( (x_1,y_1) \) and \( (x_2,y_2) \) is calculated using the formula:

\( d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2} \)

Round the computed distance to 6 decimal places for each test case.

inputFormat

The first line of the input contains a single integer \( T \) representing the number of test cases.

Each of the next \( T \) lines contains four floating point numbers: \( x_1 \), \( y_1 \), \( x_2 \), \( y_2 \), representing the coordinates of two points in the plane.

outputFormat

For each test case, output the Euclidean distance between the two points, rounded to 6 decimal places. Each result should be printed on a new line.

## sample
2
0.0 0.0 3.0 4.0
-1.0 -1.0 2.0 2.0
5.000000

4.242641

</p>