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

Автор zzzzsust19, история, 5 лет назад, По-английски

I have been getting runtime error on test case 41. I have been trying to figure out the cause, even rewrote my code, but can't seem to understand why I am getting the error. Here's my code 150627419

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

»
5 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Wild guess but.. I think you should not use 'return true' as your default value for sorting compare function. Because if two objects are identical, it should logically return false

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

Well maybe this might help : https://codeforces.me/blog/entry/70237

or if you want more serious explanation : https://codeforces.me/blog/entry/45084