Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(x, y, z, w):
- if w < 0:
- return 0
- elif w == 0:
- return 1
- s = f(x, y, z, w-x) + f(x, y, z, w-y) + f(x, y, z, w-z)
- return s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement