The distance from a point to direct
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Find the distance from a given point to a given line.
Input
Six integers - the coordinates of the point and the coordinates of two points, which is given by a straight line. The figures in the input does not exceed the modulo 10000.
Output
One number - the distance from point to line up 10^{-6}.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 47%