Farz0l1x

Untitled

Feb 24th, 2024
751
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. def f(x, y):
  2.     if x > y or x == 11 or x == 12:
  3.         return 0
  4.     if x == y:
  5.         return 1
  6.     if x < y:
  7.         return f(x + 1, y) + f(x * 2, y) + f(x**2, y)
  8. print(f(2, 10) * f(10, 40))
  9.  
Advertisement
Add Comment
Please, Sign In to add comment