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