Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Ghosts Age by TovarischZhukov
def fib(opacity, val1 = 0, val2=1):
if opacity == val1: return True
elif opacity > val1:
val1 += val2
return fib(opacity, val2, val1)
else:
return False
def checkio(opacity):
data ={}
start = 10000
for i in range (5000):
start = start-i if fib(i) else start+1
data[start]= i
return data[opacity]
Dec. 6, 2015