Hide
Problem B
Line Segment Distance
Input
The first line of input contains an integer
Output
For each test case, output the distance between the two line segments with 2 decimals of precision.
Sample Input 1 | Sample Output 1 |
---|---|
5 -10 0 10 0 0 -10 0 10 -10 0 10 0 -5 0 5 0 1 1 1 1 1 1 2 1 1 1 1 1 2 1 2 1 1871 5789 216 -517 189 -1518 3851 1895 |
0.00 0.00 0.00 1.00 713.86 |