Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Counting Tiles by artur_mierzwa
import math
def checkio(radius):
if radius <=1 and radius>0:
return [0,4]
if radius>1 and radiusmath.sqrt(2) and radius<=2:
return[4,12]
if radius>2 and radiusmath.sqrt(5) and radius<2*math.sqrt(2):
return[12,20]
if radius==2*math.sqrt(2):
return [16,16]
if radius>2*math.sqrt(2) and radius<=3:
return [16,20]
if radius>3 and radius
Oct. 31, 2016