Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. def f(x, y, z, w):
  2. if w < 0:
  3. return 0
  4. elif w == 0:
  5. return 1
  6. s = f(x, y, z, w-x) + f(x, y, z, w-y) + f(x, y, z, w-z)
  7. return s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement