Advertisement
Farz0l1x

Untitled

Apr 17th, 2024
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def f(x, y):
  2.     if x < y:
  3.         return False
  4.     if x == y:
  5.         return 1
  6.     if x > y:
  7.         return f(x - 8, y) + f(x // 2, y)
  8. print(f(102, 43) * f(43, 5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement