Problem H
Computer, compute!
You likely know the Euclidean
distance formula – the formula to find the distance
The formula is
You will take the two integer coordinates as input and compute the distance between them.
Hint: You can use the sqrt function in the math module.
Input
Input consists of four lines. The first line consists of one
integer
Output
Output one line with one floating point number
Sample Input 1 | Sample Output 1 |
---|---|
-5 -5 -11 -13 |
10.000000000000000 |
Sample Input 2 | Sample Output 2 |
---|---|
0 0 0 0 |
0.000000000000000 |
Sample Input 3 | Sample Output 3 |
---|---|
1 1 5 4 |
5.000000000000000 |
Sample Input 4 | Sample Output 4 |
---|---|
3 4 3 4 |
0.000000000000000 |
Sample Input 5 | Sample Output 5 |
---|---|
4 -3 -5 9 |
15.000000000000000 |
Sample Input 6 | Sample Output 6 |
---|---|
7 20 12 8 |
13.000000000000000 |