Блог пользователя debdhriti

Автор debdhriti, история, 3 года назад, По-английски

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.

  • Проголосовать: нравится
  • -21
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

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