debdhriti's blog

By debdhriti, history, 3 years ago, In English

In the problem B, round #763(Div 2) is submitted the following code during the contest: Incorrect Submission: Incorrect It resulted in "Runtime error on Test 8" after System Testing, later after the contest, I resubmitted after just a minor variation. Correct Solution: [https://codeforces.net/contest/1623/submission/140962533 The only difference between the two codes is the comparator function just declared above int main(), called psort. In the one giving Runtime error, it has a "<=" comparator, and in the correct one it has "<" comparator. Could anyone please tell the difference.

  • Vote: I like it
  • -21
  • Vote: I do not like it

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by debdhriti (previous revision, new revision, compare).

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by debdhriti (previous revision, new revision, compare).

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

In the one giving Runtime error, it has a "<=" comparator

https://codeforces.net/blog/entry/70237