Strange runtime error in the sort comparison function

Revision en1, by justHusam, 2016-05-27 20:39:14

Today I was solving this problem 632C - The Smallest String Concatenation.

The judge's response for this code 18114819 was Runtime error on test 8.

Then I changed only the last line in the sort comparison function (comp function) from (return true) to (return false) (code: 18114847), and the judge's response was Accepted.

Does anyone have an explanation for that?

Thank you.


  Rev. Lang. By When Δ Comment
en1 English justHusam 2016-05-27 20:39:14 449 Initial revision (published)