Question on execution speed (CPU seconds)
Posted: Tue May 05, 2009 12:22 am
I solved Problem 2085. Then I've noticed that my code runs in 1.434 CPU seconds.
Statistics for the problem shows CPU times much smaller than that.
I got curious and optimized my problem and tried different methods of reading input and processing it. My best CPU time was 0.244 CPU seconds, still nothing like 0.053 CPU seconds for the submissions on the problem statistics.
The code I wrote to get 0.244 CPU seconds was pretty well optimized and used some of the more basic features of C++ and I even tried C. I thus wonder how precise is time measured and was the Judging machine or its software ever changed while the old times were kept? Or is there really some code for that problem that will execute in about 0.053 seconds?
Statistics for the problem shows CPU times much smaller than that.
I got curious and optimized my problem and tried different methods of reading input and processing it. My best CPU time was 0.244 CPU seconds, still nothing like 0.053 CPU seconds for the submissions on the problem statistics.
The code I wrote to get 0.244 CPU seconds was pretty well optimized and used some of the more basic features of C++ and I even tried C. I thus wonder how precise is time measured and was the Judging machine or its software ever changed while the old times were kept? Or is there really some code for that problem that will execute in about 0.053 seconds?