The distance from the point to the line
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the distance from the point O to the line ax + by + c = 0.
Input
Five integers - the coordinates of the point O and coefficients a, b, c of the line equation. All integers do not exceed 10000 by absolute value.
Output
Print one number - the distance from the point O to the line with an accuracy of at least 10^(-6)
.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 45%