Point on a ray
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Determine whether a given point belongs to the ray.
Input
numbers are given — the coordinates of the point and the coordinates of the beginning and end of the vector. All input data are integers not exceeding by absolute value.
Output
Print YES if the point belongs to the ray, and NO otherwise.
Examples
Input #1
Answer #1
Submissions 6K
Acceptance rate 20%