Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
2-liner solution in Creative category for The Angles of a Triangle by przemyslaw.daniel
def checkio(a, b, c, f = lambda x, y, z: round(57.29*__import__('math').acos((x**2-y**2-z**2)/(-2*y*z)))):
return sorted([f(a, b, c), f(b, c, a), f(c, b, a)]) if sum(sorted([a, b, c])[:2]) > max([a, b, c]) else [0, 0, 0]
April 28, 2017
Comments: