Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Counting Tiles by manub
from math import pi,floor,ceil
def checkio(radius):
xmax=ceil(radius)
complete=0
partial=0
for i in range (0,xmax):
for j in range (0,xmax):
if (i+1)**2+(j+1)**2<=radius**2:
complete+=1
if (i+1)**2+(j+1)**2>radius**2 and i**2+j**2
Nov. 11, 2012
Comments: