Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Counting Tiles by ssk8
def checkio(radius):
f=p=0
for x in range(1,5):
for y in range(1,5):
if radius**2 >= x**2 + y**2: f+=1
elif radius**2 > (x-1)**2 + (y-1)**2: p+=1
return [4*f, 4*p]
Dec. 4, 2016