Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Hubspot Amulet by Moff
def checkio(matrix):
for f in range(-180, 180):
for s in range(-180, 180):
for t in range(-180, 180):
temp = [(f + matrix[1][0] * s + matrix[2][0] * t) % 360,
(matrix[0][1] * f + s + matrix[2][1] * t) % 360,
(matrix[0][2] * f + matrix[1][2] * s + t) % 360]
if temp == [0, 225, 315]:
return [f, s, t]
July 28, 2015