Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
4-liner solution in Creative category for Hubspot Amulet by przemyslaw.daniel
def checkio(m, it=__import__('itertools')):
f = lambda x, y, z, i: (x*m[0][i]+y*m[1][i]+z*m[2][i]) % 360
return next(k for k in it.product(range(-180, 181, 45), repeat=3)
if f(*k, 0) == 0 and f(*k, 1) == 225 and f(*k, 2) == 315)
April 4, 2017
Comments: