I wrote the program for the problem http://www.codechef.com/problems/PALIN when i submitted it on codechef it showed time 2.18 seconds and when i submitted it on spoj it took only 0.35 seconds !! How is this possible
Code Chef Submission
http://www.codechef.com/status/PALIN,japoorv
SPOJ ID
http://www.spoj.com/files/src/11605223/
Please explain
The reason could be that CodeChef uses Pyramid clusters of SPOJ, which are the old ones, whereas SPOJ uses Cube clusters, which they introduced a few years back.
Submissions on Cube run 30 to 50 times faster than Pyramid.
Source: http://www.spoj.com/clusters/
Codechef is using Cube since a while on live contests now 
But, on older practice problems, it’s true that those are still being judged on Pyramid hence the differences
1 Like
it might be because of different test cases in both the sites. The test cases codechef used might be bigger than spoj’s.