Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
third solution in Clear category for Ore In The Desert by Tinus_Trotyl
def checkio(data):
probes = [[0,0],[0,9],[9,0]] # probe three corners
if len(data) < 3: return probes[len(data)]
for y in range(10): # then calculate the common sector
for x in range(10):
if all([data[i][2] == round(((data[i][0]-x)**2+(data[i][1]-y)**2)**.5) for i in range(3)]): return [x, y]
May 23, 2017