dxnge

19

Sep 28th, 2021
65
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(a, b):
  2.     if a > b:
  3.         return 0
  4.     if a == b:
  5.         return 1
  6.     if a < b:
  7.         return f(a+1, b) + f(a+5, b)
  8.  
  9. print(f(2, 15) * f(15, 26) - f(2,10) * f(10,15) * f(15, 26))
  10. #110
Advertisement
Add Comment
Please, Sign In to add comment