scripts/ege/13150871/16.py

8 lines
88 B
Python
Raw Normal View History

2023-05-05 00:45:01 +03:00
def f(n):
if n <= 3:
return 1
return f(n - 3) + f(n - 2)
print(f(10))