mirror of
https://github.com/Alexander-D-Karpov/scripts.git
synced 2024-11-24 20:43:43 +03:00
10 lines
141 B
Python
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))
|