Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(a,b):
- if a == b:
- return 1
- if a > b:
- return 0
- return f(a + 1, b) + f(a * 2, b)
- print(f(1,10) * f(10, 20))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement