Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
[a, b, c] * 2 solution in Creative category for The Angles of a Triangle by nikita0063
from math import acos, degrees
from typing import List
def checkio(a: int, b: int, c: int) -> List[int]:
a, b, c = sorted([a, b, c])
if a+b <= c:
return [0, 0, 0]
side = [a, b, c]*2
out = []
for i in range(3):
a, b, c = side[i:i+3]
angle = round(degrees(acos((a**2+b**2-c**2)/(2*a*b))))
out.append(angle)
return sorted(out)
June 10, 2020