Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for The Angles of a Triangle by Pouf
from math import acos, degrees
checkio = lambda a, b, c: sorted([round(degrees(acos(i))) for i in [(b**2+c**2-a**2)/(2*b*c), (a**2+c**2-b**2)/(2*a*c), (a**2+b**2-c**2)/(2*a*b)]]) if (b+c>a and a+c>b and a+b>c) else [0,0,0]
March 14, 2014