Inaho has just realized he can travel diagonally, and also that density has nothing to do with how fast he can travel. He very much appreciates your help for trying to walk him through space, but he no longer needs your instructions. He now only needs the direct distance from his current position to his destination. As he still cannot understand the complexities of
Given his current position and his destination point, find the direct distance if he is able to travel diagonally.
Input Specification
The first line will contain the integer
The second line will contain
The third line will contain
Subtasks
For 1 of the 7 available marks,
For an additional 1 of the 7 available marks,
Output Specification
Output the direct distance from
Outputs with a relative or absolute error of
Sample Input 1
2
1.0 1.0
2.0 2.0
Sample Output 1
1.414213
Sample Input 2
3
1.5 2.5 4.0
0.2 5.0 0.0
Sample Output 2
4.892851
Comments