Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Fast and clear solution in Clear category for Ghosts Age by BertrandBordage
def checkio(opacity):
age = 0
i0 = 1
i1 = 1
while opacity != 10000:
age += 1
if i1 < age:
i0, i1 = i1, i0+i1
opacity += age if age == i1 else -1
return age
April 30, 2014