Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор cniks117, 12 лет назад, По-английски

how can we compute the numbers of the series 2 ,4,6,10,14,22,30,46 .. for a number as large as 10^9 ?? here is my code http://ideone.com/0fuDO but it is too slow ..plz suggest me some faster method

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

»
12 лет назад, # |
Rev. 2   Проголосовать: нравится +13 Проголосовать: не нравится

This task is currently part of CodeChef contest. You should not discuss/request help/share code with others

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

Don't repeat my mistakes.

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

but i m not asking the exact answer and neither have i posted the question...i m just asking if anybody can help me in building a strategy and learning new things