结构调整2

This commit is contained in:
2026-02-12 14:55:48 +08:00
parent 5e75402b43
commit cfcdfde170
19 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from time import time as tt
def fib(x:int) -> int:
if x <= 1: return x;
return fib(x-1) + fib(x-2)
if __name__ == '__main__':
t0 = tt()
result = fib(30)
t1 = tt()
print('cost: ',t1-t0, 'result:', result)