Considerable difference in time between two exact same algorithms

Revision en1, by NeverMa573r, 2023-07-24 01:56:48

For this problem : https://mirror.codeforces.com/contest/1805/problem/C, I submitted this solution: https://mirror.codeforces.com/contest/1805/submission/215278227.

The runtime is 78 ms.

I then submitted the exact same solution with a simple comment at the top : https://mirror.codeforces.com/contest/1805/submission/215278404.

The runtime is 93 ms.

Although meaningless here, what accounts for the difference in runtime? I would understand if the difference was 1 or 2 ms off, but 15 ms off seems like a lot for two exact same solutions.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English NeverMa573r 2023-07-24 01:56:48 598 Initial revision (published)