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