#abc362b. B - Right Triangle
B - Right Triangle
Score : points
问题陈述
在 平面上,有三个点 ,,和 它们不共线。确定三角形 是否为直角三角形。
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
In the -plane, there are three points , , and that are not collinear. Determine whether the triangle is a right triangle.
Constraints
- The three points , , and are not collinear.
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
Print Yes
if the triangle is a right triangle, and No
otherwise.
Sample Input 1
0 0
4 0
0 3
Sample Output 1
Yes
The triangle is a right triangle.
Sample Input 2
-4 3
2 1
3 4
Sample Output 2
Yes
The triangle is a right triangle.
Sample Input 3
2 4
-3 2
1 -2
Sample Output 3
No
The triangle is not a right triangle.