mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-22 20:06:33 +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))
|