Блог пользователя checkMate09

Автор checkMate09, история, 8 лет назад, По-английски

in problem B. Well-known Numbers Codeforces Round 139 Div 2 The K-bonacci numbers are only 0 and powers of two. how is the output of the first sample 3 0 2 3 although the sum is equal to s 3 isn't belong to any term of bonacci sequence. how is this possible ?

  • Проголосовать: нравится
  • +10
  • Проголосовать: не нравится

»
8 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

F(2,5) = F(2,4) + F(2,3) = 2 + 1 = 3