Problem E
Goat Rope
You have a fence post located at the point
Determine the minimum distance from the fence post to the house, so that you can make sure to use a shorter rope.
Input
The input consists of a single line containing six
space-separated integers
It is guaranteed that
Output
Print the minimum distance from the goat’s post to the
house, with a relative or absolute error no more than
Sample Input 1 | Sample Output 1 |
---|---|
7 3 0 0 5 4 |
2.0 |
Sample Input 2 | Sample Output 2 |
---|---|
6 0 0 2 7 6 |
2.0 |
Sample Input 3 | Sample Output 3 |
---|---|
3 -4 -3 -1 -1 2 |
5.0 |