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:  20100526 
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
20110426 14:26:40 anonymous
Thank you. 

20110426 09:56:16 Piotr KÄ…kol
1 2 3 

20110425 13:39:53 anonymous
Could you please tell me for what input my solution #5010571 fails? Thank you. 

20100529 09:05:08 Piotr KÄ…kol
Thank You also. I see I should check the task before adding. ;) 

20100528 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 

20100526 15:00:38 Piotr KÄ…kol
Thank You. I copied this part from another task and didn't change it. ;) 

20100526 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... 