Блог пользователя anusatya.choudhary

Автор anusatya.choudhary, история, 2 года назад, По-английски

Hi, The question is this ABC 260 — B. I can not find a flaw in my submission. The failing test cases are not available.

Please find the flaw. Thanking in advance.

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

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

The problem states that ties should be resolved by comparing the IDs of the students, you did not implement this.

Edit: But it looks like you tried to do this, by using restortOrig. Unfortunatly it does not work like this. To make it work you would have to use the function stable_sort instead of sort. Well, or you implement the three other comparators so that they handle the tie case correctly.