anusatya.choudhary's blog

By anusatya.choudhary, history, 2 years ago, In English

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.

| Write comment?
»
2 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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.