Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
O(1) solution in Speedy category for Hubspot Amulet by veky
def checkio(m):
(_,e,f),(r,_,s),(t,u,_)=m;g,a,v,k=1-e*r-f*t+e*s*t+f*r*u-s*u,360,0,1
while a:g,a,v,k=a,g%a,k-g//a*v,v
return[(k%(360//g)*45*x//g+180)%360-180for x
in(5*s*t-5*r+7*r*u-7*t,5-5*f*t+7*e*t-7*u,5*f*r-5*s+7-7*e*r)]
Dec. 31, 2013
Comments: