Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Speedy category for Counting Tiles by OleksiyKhomenko
import math
def checkio(radius):
solid = 0
for i in range(1, math.ceil(radius)):
solid += math.floor(math.sqrt(radius * radius - i * i)) * 4
return [solid, (math.ceil(radius) * 2 - 1) * 4]
Jan. 28, 2020