Equality (ISBIAS) was really ambiguous and even the testcases were weak.
Even certain wrong solutions passed.
I hope you read in constraints A1,A2,…,AN are pairwise distinct.
Yes I found it ambiguous too at first. But logic for the solution made it clear.
Yes i agree but the wrong logic was getting AC
Im sorry … i had the question misinterpreted … sorry to take up your time