The Math Obsession

0

0 votes
Very-Easy
Problem

Arunabha is great in maths. But he is not a good coder. He wants to write a program to check, in a graph with coordinates X and Y, if three points fall on the same line or not.

INPUT:
Six integers x1, y1, x2, y2, x3, y3 separated by whitespace.

OUTPUT:
Print “Yes” (without quotes) if all the points fall on straight line, “No” (without quotes). otherwise.

CONSTRAINTS:
­-1000 <= x1, y1, x2, y2, x3, y3 <= 1000

Time Limit: 0.5
Memory Limit: 256
Source Limit:
Editor Image

?