Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Second solution in Clear category for Ore In The Desert by bryukh
from math import hypot
cells = [[i, j] for i in range(10) for j in range(10)]
def checkio(data):
global cells
for x, y, d in data[-1:]:
cells = [[i, j] for i, j in cells if round(hypot(x - i, y - j), 0) == d]
return cells[0]
June 19, 2013
Comments: