JDCC '16 Contest 3 P1 - Triangle Types

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Problem type

Triangles can be described in many ways. One way to describe a triangle is by the equality between its angles/sides (equilateral, isosceles, scalene). Another way to describe a triangle is by the size of its largest angle (acute, right, obtuse).

These two descriptions can be combined as well! So a triangle with all three angles equaling 60 degrees is an acute equilateral triangle, and a triangle with one 100 degree angle and two 40 degree angles is an obtuse isosceles triangle.

Your job is to write a program that will describe a triangle given the size of its angles.


Each test case contains three integers A, B, C (1 \le A, B, C \le 178), the three angles of a triangle.


Output the triangle's description, starting with one of acute, right, obtuse, and ending with one of equilateral, isosceles, scalene.

Sample Input

60 60 60

Sample Output

acute equilateral

Sample Input

100 40 40

Sample Output

obtuse isosceles

Sample Input

90 89 1

Sample Output

right scalene


There are no comments at the moment.