The Lone Wolf

Just like you, the Lone Wolf is a loner and amidst a row of soulmates at Dhanmondi Lake today, only …

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

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.