Point on a line
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Determine whether a point belongs to the line given by equation Ax + By + C = 0.
Input
Five integers - the coordinates of the point x, y and the coefficients A, B, C of the line equation (it is guaranteed that A and B are not simultaneously 0).
Output
Print "YES", if the point belongs to the line and "NO" otherwise.
Examples
Input #1
Answer #1
Submissions 7K
Acceptance rate 67%