Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Ghosts Age by Oleg_Domokeev
def checkio(opacity):
if opacity in (10000, 9999):
return 10000 - opacity
if opacity == 9997:
return 2
a, b, op = 1, 2, 9997
while op > opacity:
a, b, op = b, a + b, op - b - 1
return b + (opacity - op)
April 7, 2020
Comments: