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 Tinus_Trotyl
def checkio(data):
probe = len(data)
if probe == 0: return [0, 0] # probe three corners
if probe == 1: return [0, 9]
if probe == 2: return [9, 0]
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