#B. [ZBWR1A]judgement triangle

    Type: Default 1000ms 256MiB

[ZBWR1A]judgement triangle

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

judgement triangle

Problem Statement

One day, Zzy was doing her homework and came across a difficult problem. What did the puzzle look like? Given three coordinate points (Xa,Ya,Xb,Yb,Xc,Yc)(X_a,Y_a,X_b,Y_b,X_c,Y_c), find whether the triangle is a right triangle, an acute triangle, or an obtuse triangle. Note1:These three coordinate points must be able to form a triangle Note2:If the triangle also contains an acute triangle then output a right triangle. Can you help him solve this problem?

Constraints

  • 1000Xa,Ya,Xb,Yb,Xc,Yc1000-1000 \leq X_a, Y_a, X_b, Y_b, X_c, Y_c \leq 1000
  • The three points AA, BB, and CC are not collinear.
  • All input values are integers.

Standard input

The input is given from Standard Input in the following format:

Xa,YaX_a,Y_a Xb,YbX_b,Y_b Xc,YcX_c,Y_c

Output

Given three coordinate points(Xa,Ya,Xb,Yb,Xc,YC)(X_a,Y_a,X_b,Y_b,X_c,Y_C), find whether the triangle is a right, acute or obtuse triangle.

Output acute triangle or right angled triangle or obtuse triangles

Sample calendar

Sample Input 1

0 0
4 0
0 3

Sample Output 1

right angled triangle

Sample Input 2

2 4
-3 2
1 -2

Sample Output 2

acute triangle

Sample Input 3

2 7
2 1
6 3

Sample Output 3

obtuse triangles

题面翻译

给定三个坐标点Xa,Ya,Xb,Yb,Xc,Yc(X_a,Y_a,X_b,Y_b,X_c,Y_c),求这个三角形是直角三角形、锐角三角形还是钝角三角形。 如果是锐角三角就输出acute triangle 直角就输出right angled triangle 钝角就输出obtuse triangles

Zzy Beginners Weekly Contest 001

Not Attended
Status
Done
Rule
OI
Problem
2
Start at
2024-7-16 10:30
End at
2024-8-6 6:30
Duration
500 hour(s)
Host
Partic.
4