1478 Determine a triangle
Time Limit : 2000/1000 MS(Java/Others) | Memory Limit : 65536/32768 KB(Java/Others)
Submits : 322 | Solved : 61
Description
The problem is very very simple.Give you three segments, determine which kind of triangle will be form.
Triangle will have five kind:
1.EquilateralTriangle ,the lengths of three edges are equal.
2.IsoscelesTriangle ,only two edges' lengths are equal.
3.RightTriangle ,exist a angle equal 90°.
4.AcuteTriangle ,all three angle is less than 90°.
5.ObtuseTriangle ,exist a angle more than 90°.
Input
Give you three integers represent the three segments.
All integers are less than 100,000,000 and more than 1.
Output
Output which Triangle the three segments will form.
If they can satisfy two kind Triangles, just output the two word except the "Triangle" ordered by the kind number and add a "Triangle" in the end.
If they can't form a Triangle ,Just output "Not a Triangle".
Sample Input
3 3 3
Sample Output
EquilateralAcuteTriangle
HINT
Do not laugh at my poor english.
Source
NBU OJ