link of the problem : https://codeforces.net/gym/104030/problem/B
wrong answer on test 4: the test is : 6 1 2 6 5 5 2 3 4 4 2 my code: https://ideone.com/0LtE25 my output: (there might be multiple answers) YES 5 6 2 1 4 3
judge answer: YES 2 4 5 1 3 6
as far as I can see , is that my solution is also accepted no? if no please why. THANK YOU!
Test case 4 is actually
There is an answer, but you output NO