Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f(s,x):
- if s>x:
- return 0
- if s==x:
- return 1
- k=f(s,x-1)
- k+=f(s,x-2)
- return k
- print(f(11,23)*f(23,29)+f(11,17)*f(17,23)*f(23,29)+f(11,23)*f(23,29))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement