i am not able to figure out why i got TLE with memset in http://www.codechef.com/FEB14/problems/LCPESY .
However , on replacing memset(..., 0 , 256)
by for(i=0;i<256;i++)
i got AC .
What is the reason ?
i am not able to figure out why i got TLE with memset in http://www.codechef.com/FEB14/problems/LCPESY .
However , on replacing memset(..., 0 , 256)
by for(i=0;i<256;i++)
i got AC .
What is the reason ?