Farz0l1x

Untitled

Dec 7th, 2023
769
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. def f(x, y):
  2.     if x > y:
  3.         return 0
  4.     if x == y:
  5.         return 1
  6.     if x < y:
  7.         return f(x + 1, y) + f(x + 3, y) + f(x * 3, y)
  8. print(f(3, 9) * f(9, 27) * f(27, 31))
Advertisement
Add Comment
Please, Sign In to add comment