Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
✧*。٩(ˊᗜˋ*)و✧*。 solution in Clear category for Ghosts Age by vmiimu
import math
def checkio(opacity):
def is_fib(n):
phi = 0.5 + 0.5 * math.sqrt(5.0)
a = phi * n
return n == 0 or abs(round(a) - a) < 1.0 / n
y,o = 0, 10000
while True:
o = (o-y) if is_fib(y) else (o+1)
if o == opacity:
return y
else:
y += 1
Jan. 21, 2019
Comments: