scripts/ege/Вариант 14/23.py
2023-05-05 00:45:01 +03:00

10 lines
141 B
Python

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))