Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

1045 uri solution

data = list(map(float, input().split( )))

data.sort(reverse=True) 

a,b,c = data

if a>=b+c:
    print("NAO FORMA TRIANGULO")
elif a**2 == b**2 + c**2:
    print("TRIANGULO RETANGULO")
elif a**2 > b**2 + c**2:
    print("TRIANGULO OBTUSANGULO")
elif a**2 < b**2 + c**2:
    print("TRIANGULO ACUTANGULO")
    
if a==b and a==c and b==a and b==c and c==a and c==b:
    print("TRIANGULO EQUILATERO")
elif a==b or a==c or b==a or b==c or c==a or c==b:
    print("TRIANGULO ISOSCELES")



 
PREVIOUS NEXT
Tagged: #uri #solution
ADD COMMENT
Topic
Name
3+3 =