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

Автор Funfunfunfun, история, 4 года назад, По-английски

Recently, I had problem: counting ways in which X could be represented as summing Fibonacci numbers without repeating them. With X <= 1e9;and the input has N text with N <= 1e5. Can you give me an idea to solve this problem? thanks for help.

Полный текст и комментарии »

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

Автор Funfunfunfun, история, 4 года назад, По-английски

The other day I met a problem that needed to count the number of primes less than n with n <= 1e10. But I only know how to use sieve to solve but it can only run with n <= 1e6. Can you help me find a better solution? thanks for help!

Полный текст и комментарии »

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