Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
By Iv.Virtue solution in Clear category for Ghosts Age by iv.virtue
def checkio(opacity):
fib = [0]
yop = [10000]
a, b = 1, 1
for i in range(1,22):
fib.append(b)
a, b = b, a+b
if 10000-b<0: break
for i in range(1,5001):
if i in fib: yop.append(yop[i-1]-i)
else: yop.append(yop[i-1]+1)
if opacity in yop: return yop.index(opacity)
July 14, 2014
Comments: