Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

[SPOJ] DIVSUM2 Showing Time Limit Exceeded

Правка en1, от i_love_emilia_clarke, 2015-10-27 16:11:11

Hi, I am trying to solve this www.spoj.com/problems/DIVSUM2 but getting TLE . I have pre-calculated primes up-to 10**7 and then for each test-cases i factorize it using O(sqrt(n)) method and then run GP formula for each of the prime factor of the given integer. Here is my solution... http://ideone.com/ZcDbYN... Please Help...

Теги factorization, divisors

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский i_love_emilia_clarke 2015-10-27 16:11:11 372 Initial revision (published)