Advertisement
nq1s788

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

Jan 6th, 2024
771
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] * 21
  2. a[2] = 1
  3. for i in range(3, 21):
  4.     a[i] += a[i - 2]
  5.     if i % 5 == 0:
  6.         a[i] += a[i // 5]
  7. print(a[20])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement