Advertisement
nq1s788

23 без ограничений

Dec 23rd, 2023
823
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. a = [0] * 23
  2. a[2] = 1
  3. for i in range(3, 23):
  4.     a[i] += a[i - 1]
  5.     if i % 2 == 0:
  6.         a[i] += a[i // 2]
  7. print(a[22])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement