Wow!! Wrong code for problem C got AC

Правка en1, от 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. Язык Кто Когда Δ Комментарий
en1 Английский Alt_of_Charon 2022-05-19 23:40:57 502 Initial revision (published)