The position of points outside the line
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Find the relative position of two points and the line Ax + By + C = 0.
Input
Seven numbers - the coordinates of two points and the coefficients A, B, C of the line equation.
Output
Print "YES", if the points lie on one side from the line and "NO" otherwise.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 35%