Point on a segment
Easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
Determine whether a given point belongs to a given segment.
Input
Six integers - the point coordinates and the coordinates of the beginning and end of the segment. All input values do not exceed 10000 by absolute value.
Output
Print "YES", if the point belongs to the segment, and "NO" otherwise.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 8K
Acceptance rate 18%