prime fctors

Правка en2, от vsanjay_nitdgp, 2015-08-23 10:29:33

this is my solution http://ideone.com/5i1hV2 for the problem

https://www.codechef.com/LTIME16/problems/CHEFB

in this problem i am getting TLE whn n<=100000 and array size<=1000000

but when i removed memset and wrote that step normally by bruteforce ....i got AC........

why?????????????????

this is my modified solution

http://ideone.com/G6t0fX

thanks in advance

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский vsanjay_nitdgp 2015-08-23 10:30:27 35 Tiny change: '......\n\n\nwhy???' -> '......\n\nwhat happened with that memset();\n\nwhy???'
en2 Английский vsanjay_nitdgp 2015-08-23 10:29:33 172
en1 Английский vsanjay_nitdgp 2015-08-23 09:49:26 277 Initial revision (published)