Submit | All submissions | Best solutions | Back to list |
TRIAN - Type of triangle |
Wersja polska | English version | Deutsche Fassung |
Given lengths a, b and c of triangle's sides determine it's type.
Input
There is unknown number of tests. Each of them consists of one line in which appear three integers: a, b and c (all < 10000).
Output
For each test print one word:
- right - if triangle is right
- obtuse - if triangle is obtuse
- acute - if triangle is acute
- none - if there is no such a triangle
Example
Input:
1 1 10
3 4 5
2 3 4
7 7 7
Output:
none
right
obtuse
acute
Added by: | Piotr Kąkol |
Date: | 2010-05-26 |
Time limit: | 3.303s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: NODEJS OBJC SCM qobi VB.NET |
hide comments
2011-04-26 14:26:40 anonymous
Thank you. |
|
2011-04-26 09:56:16 Piotr KÄ…kol
1 2 3 |
|
2011-04-25 13:39:53 anonymous
Could you please tell me for what input my solution #5010571 fails? Thank you. |
|
2010-05-29 09:05:08 Piotr KÄ…kol
Thank You also. I see I should check the task before adding. ;-) |
|
2010-05-28 11:30:09 Knight
The First Line "Given lenghts a, b and c of triangle's sides determine it's type." the spelling of length is wrong :P |
|
2010-05-26 15:00:38 Piotr KÄ…kol
Thank You. I copied this part from another task and didn't change it. ;-) |
|
2010-05-26 14:45:51 Jargon
"Each of them consists of one line in which appear two integers: a, b and c (all < 10000)." There are three... |