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)
- A = f(1,10) * f(10,35)
- B = f(1,10) * f(10,17) * f(17,35)
- C = A - B
- print(C)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement