The triangle
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
In Euclidean geometry, triangles can be divided into three types depending on the values of their angles. The triangle is acute if all its three angles are less than 90 degrees. The triangle is obtuse, if one of its angles is greater than 90 degrees. Finally, a triangle is right if one of its angles equals to 90 degrees.
Input
Three positive integers A, B, C, separated with one space, are given in one line. They are the lengths of triangle's sides. (1 ≤ A, B, C ≤ 10000)
Output
One of the words must be printed:
"IMPOSSIBLE" – if such triangle does not exist;
"ACUTE" – if the triangle is acute;
"OBTUSE" – if the triangle is obtuse;
"RIGHT" – if the triangle is right.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Input #4
Answer #4
Submissions 13K
Acceptance rate 31%