This is my code for the KCHESS Problem. What can be the corner case for which my code is failing? Or is it that I am just printing wrong output to the console? I tried only with the test case given on the problem page and it’s giving the correct output. But after submission I am getting WA.
My Code: CodeChef: Practical coding for everyone
Thanks.