Advertisement
maxim_shlyahtin

23

Feb 1st, 2022
994
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def f(x, y):
  2.     if x > y:
  3.         return 0
  4.     elif x == y:
  5.         return 1
  6.     elif x < y:
  7.         return f(x + 1, y) + f(x * 3, y)
  8.  
  9.  
  10. print(f(2, 28) * f(28, 90))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement