Point and Line Segment
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Is point A
on the line segment BC?
Input
The input consists of the coordinates for points A, B, and C. Each coordinate value is an integer that does not exceed 100 in absolute value.
Output
The output should be 1 if point A
lies on the segment BC, and 0 if it does not.
Examples
Input #1
Answer #1
Submissions 10K
Acceptance rate 23%