The Lone Wolf

This problem is interactive.

Just like you, the Lone Wolf is a loner and amidst a row of soulmates at Dhanmondi Lake today, only he’s alone. In this unfair world, each person has a soulmatesheep value. Two persons’ soulmatesheep values are equal if and only if they are soulmates. That means, Sadly, there’s no other person having the same soulmatesheep value as the Lone Wolf and hence the desolation.


This is a companion discussion topic for the original entry at https://toph.co/p/the-lone-wolf

I ran the same code twice both of them got WA but one of them got AC in first but other got WA. Is there any problem with the checker?
First one
Second one

The numbers were generated randomly before each run, so it’s not unlikely for different passes of the same solution receiving different verdict sequences.