Wow!! Wrong code for problem C got AC

Revision en1, by Alt_of_Charon, 2022-05-19 23:40:57

This submission was wrong but still got AC

what if in the latter part we have a vector where a total of two pairs are in there incorrect position and one pair is set up in that vector such that it will pass the loop of checking whether after swapping we will get the same element which we store in the auxiliary sorted copy of the initial vector. That should fail the test cases right? But it didn't.


  Rev. Lang. By When Δ Comment
en1 English Alt_of_Charon 2022-05-19 23:40:57 502 Initial revision (published)