Advertisement
vadim_sharaf

Untitled

Oct 7th, 2021
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def F(t):
  2.       if t == 1:
  3.             return 1
  4.       elif t == 2:
  5.             return 1
  6.       elif t == 3:
  7.             return 1
  8.       else:
  9.             if t > 3:
  10.                   return F(t-3) + F(t-2)
  11. print(F(12))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement