#P5717. Triangle Classification
Triangle Classification
Triangle Classification
Given three line segments with lengths \(a\), \(b\), and \(c\) (each a positive integer not greater than 10000), determine what type of triangle they can form when joined together. The classification should follow these rules (in the order given):
- If the three segments cannot form a triangle, output
Not triangle
. - If they form a right triangle, output
Right triangle
. - If they form an acute triangle, output
Acute triangle
. - If they form an obtuse triangle, output
Obtuse triangle
. - If they form an isosceles triangle, output
Isosceles triangle
. - If they form an equilateral triangle, output
Equilateral triangle
.
If the triangle meets more than one condition, output each corresponding result in the above order on a separate line.
inputFormat
The input consists of a single line containing three space-separated positive integers \(a\), \(b\), and \(c\) (all \(\leq 10000\)).
outputFormat
Output the classification result(s) following the rules described. If multiple classifications apply, output each on a new line.
sample
3 4 5
Right triangle