Advertisement
LilChicha174

Untitled

Apr 4th, 2022
128
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 1
  4.     if x > y or x == 15:
  5.         return 0
  6.     if x < y:
  7.         return f(x + 1, y) + f(x + 2, y)
  8.  
  9.  
  10. print(f(3, 9) * f(9, 20))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement