Farz0l1x

Untitled

Feb 12th, 2023
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. def f(cur, end):
  2.     if cur < end:
  3.         return 0
  4.     if cur == end:
  5.         return 1
  6.     if cur > end:
  7.         return f(cur - 8, end) + f(cur // 2, end)
  8. print(f(102, 43) * f(43, 5))
Advertisement
Add Comment
Please, Sign In to add comment