Advertisement
Korotkodul

dem22.n23

Jun 18th, 2023
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. def f(a,b):
  2.     if a == b:
  3.         return 1
  4.     if a > b:
  5.         return 0
  6.     return f(a + 1, b) + f(a * 2, b)
  7.  
  8. print(f(1,10) * f(10, 20))
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement