Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for The Angles of a Triangle by Yusi
from typing import List
from math import acos,pi
def angle(x:int,y:int,z:int):
return round(acos((x**2+y**2-z**2)/(2*x*y))*180/pi)
def checkio(a: int, b: int, c: int) -> List[int]:
return sorted([angle(a,b,c), angle(a,c,b), angle(c,b,a)]) if sorted([a,b,c])[2]
Sept. 6, 2018