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. confused

  • created

    Apr '07
  • last reply

    Apr '09
  • 1

    reply

  • 106

    views

  • 2

    users

1 year later

dirty magic.
no matter what input/output system they used,
even they know the answers beforehand,
their programs must take some time while executing really long tests suites...

probably, there was bug in the system some time ago? I haven't seen results like 0.0[01] lately.

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 37 28d

Want to read more? Browse other topics in C and C++ or view latest topics.