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