Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Angles of a Triangle by darasg2008
from math import acos, pi
def checkio(a, b, c):
tab=[]
if a+b>c and b+c>a and a+c>b:
tab=tab+[round(acos((a*a+b*b-c*c)/(2*a*b))/pi*180)]
tab=tab+[round(acos((a*a+c*c-b*b)/(2*a*c))/pi*180)]
tab=tab+[round(acos((b*b+c*c-a*a)/(2*b*c))/pi*180)]
tab=sorted(tab)
return tab
else:
return [0,0,0]
Nov. 5, 2016
Comments: