Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Creative category for Ghosts Age by Villentre
# Art by Donovan Bake
# .-.
# (o o) boo!
# | O \
# \ \
# `~~~'
def fibonacci():
a, b = 0, 1
while True:
yield a
a, b = b, a + b
def checkio(opacity):
opacities = {10000:0}
tmp = 10000
fib_generator = fibonacci()
fibs = [next(fib_generator) for x in range(5000)]
for age in range(1, 5000):
if age in fibs:
tmp -= age
else:
tmp += 1
opacities[tmp] = age
return opacities[opacity]
May 17, 2017
Comments: