I'm a beginner at SPOJ, dealing with the problems in my spare time. till now I've submitted only 3 problems, but each one cost much more time to run than that of others. How depressed I felt. Well, my "PALIN" program(4. The Next Palindrome) cost 0.11s, but many other people were able to reach to 0.01s, How could they do this? I've been looking at my program for the possibility of optimization, but there seemed no tricks. By the way, I use C99 strict, I don't think it is much lower than C or C++, they should be mostly the same. Can you post your PALIN code here if your program cost only 0.01s or 0.02s to run? I want to refer to it and that will satisfy my curiosity. 