Banner Home Page DIY Contests Problems Ranklist Status Statistics
1034数据再次加强,如果还能水过我不管了……

综合训练——三点共线

Time Limit : 3000/1000ms (Java/Other)   Memory Limit : 65535/32768K (Java/Other)
Total Submission(s) : 84   Accepted Submission(s) : 41

Font: Times New Roman | Verdana | Georgia

Font Size:

Problem Description

给出平面三个不同点的坐标,判断三点是否共线

Input

输入包含多组数据
每组数据包含6个整数 xa, ya, xb, yb, xc, yc
( -20000 <= xa, ya, xb, yb, xc, yc <= 20000 )

Output

对于每组数据,如果三点共线,输出YES,否则输出NO

Sample Input

0 0 1 1 2 2
0 0 1 1 1 0

Sample Output

YES
NO

Author

916852

Statistic | Submit | Back