Farz0l1x

Untitled

May 8th, 2023
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. def f(x, y):
  2. if x == 11: return 0
  3. if x >= y: return x == y
  4. return f(x+1, y) + f(x*2, y) + f(x*3, y)
  5.  
  6. print(f(2, 15)*f(15, 25))
Advertisement
Add Comment
Please, Sign In to add comment