mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-28 22:33:44 +03:00
8 lines
88 B
Python
Vendored
8 lines
88 B
Python
Vendored
def f(n):
|
|
if n <= 3:
|
|
return 1
|
|
return f(n - 3) + f(n - 2)
|
|
|
|
|
|
print(f(10))
|