Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ore In The Desert by kazuki.h
from random import sample
from math import sqrt
def checkio(previous):
return [[i, j] for i in range(10) for j in range(10) \
if all([round(sqrt((i-x)**2+(j-y)**2)) == r for x, y, r in previous])][0] \
if previous else [0, 0]
Jan. 2, 2022
Comments: