scripts/ege/Вариант 14/23.py

10 lines
141 B
Python
Raw Normal View History

2023-05-05 00:45:01 +03:00
def f(n, y):
if n < y:
return 0
if n == y:
return 1
return f(n / 2, y) + f(n - 1, y)
print(f(64, 14))