Distance from the point to the beam
Easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Find the distance from a given point to a given beam.
Input
Six integers not exceeding modulo 10000, - coordinates of the point and the coordinates of the beginning and end of the vector.
Output
One number - the distance from the point to the beam, defined by a vector, to within 10^{-6}.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 21%