So I was looking through my WA verdict on today's Educational Round Problem C. It failed on the following case,
But when I run the test locally for the first 12 queries (couldnt access the full test case), It gives the expected output.
Submission : https://codeforces.me/contest/1342/submission/78206445
What is the problem here? I don't quite get it. Thanks for the help :)