Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for The Angles of a Triangle by Ylliw
def checkio(a, b, c):
from math import acos,degrees
a,b,c=sorted((a,b,c))
if a+b<=c: return [0, 0, 0]
f=lambda a,b,c:round(degrees(acos(.5*(c**2+a**2-b**2)/a/c)))
return sorted(map(f,(a,b,c),(b,c,a),(c,a,b)))
Dec. 7, 2017