Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ghosts Age by sebastian009
def checkio(opacity):
f = []
a,b = 1,1
for i in range(25):
a,b = b,b+a
f.append(a)
b = 10000
j = 1
while j<=10000 and b!=opacity:
if j in f:
b = b - j
else:
b = b + 1
j += 1
return j-1
Oct. 20, 2016