Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Law of cosines solution in Creative category for The Angles of a Triangle by MrPod
from math import acos, degrees
def checkio(a, b, c):
i = (a, b, c)
return sorted([0 if 2 * max(i) >= sum(i) else round(degrees(acos((i[j] ** 2 + i[j - 2] ** 2 - i[j - 1] ** 2) / (2 * i[j] * i[j - 2])))) for j in range(3)])
April 30, 2018
Comments: