2021-04-14 16:25:22 +03:00
|
|
|
def __main__():
|
|
|
|
def fib(n):
|
|
|
|
if n < 2: return n
|
|
|
|
return fib(n-2) + fib(n-1)
|
|
|
|
fib(30)
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2021-04-16 13:58:05 +03:00
|
|
|
from fasttimer import timeit
|
2021-04-14 16:25:22 +03:00
|
|
|
print(timeit(__main__,number=1),'fib(30)')
|
|
|
|
|