Funfunfunfun's blog

By Funfunfunfun, history, 4 years ago, In English

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.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By Funfunfunfun, history, 4 years ago, In English

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!

Full text and comments »

  • Vote: I like it
  • +2
  • Vote: I do not like it