Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Concise too solution in Speedy category for The Angles of a Triangle by vikulin
from math import acos, degrees
def checkio(a, b, c):
if a + b <= c or c + a <= b or c + b <= a:
return [0, 0, 0]
deg = lambda a, b, c: round(degrees(acos((b*b + c*c - a*a)/(2*b*c))))
aa,bb = deg(a,b,c), deg(b,a,c)
return sorted([aa, bb, 180 - aa - bb])
Sept. 29, 2014