dmkz's blog

By dmkz, history, 6 years ago, In English

Problem: same code submitted 5 times with different comments got different verdict on codeforces testing system: from accepted to tle. Link to original picture.

Screen

First group of equals submissions: 42063540, 42063549, 42063558, 42063574, 42063583

Second group of equals submissions: 42063251, 42063390, 42063403, 42063414, 42063421

You can compare the code and make sure it's the same, I'm scared and I do not know if it's possible in a real competition in codeforces rounds.

Is it dangerous to write comments to a solution in code? It looks like codeforces testing system spending time for reading my comments, so can codeforces testing system works slowly if I wrote too much comments?

UPD: This is the sixth submission from first group with time 3088 ms

  • Vote: I like it
  • +69
  • Vote: I do not like it

»
6 years ago, # |
Rev. 2   Vote: I like it +39 Vote: I do not like it

Look at the runtimes. In the first block you had a 3868 ms also which is dangerously close to the TL, and in the second you had 3322 ms, which was the fastest.

The compiler totally ignores comments and the produced binary will be exactly the same, so no, it isn't dangerous. It is weird though that CF judging fluctuates from 3322 to 4000 ms.