题目描述
Problem Statement
In the xy-plane, there are three points A(x_A, y_A), B(x_B, y_B), and C(x_C, y_C) that are not collinear. Determine whether the triangle ABC is a right triangle.
Input
The input is given from Standard Input in the following format:
x_A y_A
x_B y_B
x_C y_C
Output
Print Yes if the triangle ABC is a right triangle, and No otherwise.
Constraints
- -$1000 \leq x_A, y_A, x_B, y_B, x_C, y_C \leq 1000$
- The three points A, B, and C are not collinear.
- All input values are integers.
Sample Input 1
0 0
4 0
0 3
Sample Output 1
Yes
The triangle ABC is a right triangle.
Sample Input 2
-4 3
2 1
3 4
Sample Output 2
Yes
The triangle ABC is a right triangle.
Sample Input 3
2 4
-3 2
1 -2
Sample Output 3
No
The triangle ABC is not a right triangle.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
0 0
4 0
0 3
样例输出
Yes