Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Ghosts Age by UFO665
def fib(n):
a, b = 1, 1
for i in range(n - 1):
a, b = b, a + b
return a
lstFib = [fib(i) for i in range(1, 21)]
def checkio(opacity):
curOpacity = 10000
res = 0
while curOpacity != opacity:
res += 1
curOpacity -= res if res in lstFib else -1
return res
Jan. 27, 2016