Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Hubspot amulet solution in Uncategorized category for Hubspot Amulet by capback250
def checkio(matrix):
""" brute force"""
for first in range(-180, 181):
for second in range(-180, 181):
for third in range(-180, 181):
if ((first + second * matrix[1][0] + third * matrix[2][0]) % 360 == 0 and
(first * matrix[0][1] + second + third * matrix[2][1]) % 360 in [-135, 225] and
(first * matrix[0][2] + second * matrix[1][2] + third) % 360 in [-45, 315]):
return [first, second, third]
Nov. 21, 2015