ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1348. Goat in the Garden 2

How to know the triangle is acute or obtuse?
Posted by Akshin Salimov 15 Apr 2005 11:38
Are there any ways of checking triangle beside checking every angle?

Edited by author 15.04.2005 11:44
Re: How to know the triangle is acute or obtuse?
Posted by Виктор Крупко 15 Apr 2005 17:38
if (a*a+b*b=c*c) or (a*a+c*c=b*b) or (b*b+c*c=a*a) then
              write('Triangle rectangular')
       else
        if (a*a+b*b<c*c) or (a*a+c*c<b*b) or(b*b+c*c<a*a)   then
        write('треугольник тупоугольный')
        else  write('Triangle acute-angled');
Re: How to know the triangle is acute or obtuse?
Posted by Akshin Salimov 15 Apr 2005 18:24
Thank you very much!
It's very useful information for me!