After seeing the verdict as wrong answer, I checked my program, and also tested it against few test cases. However, since I could not find any fault in my program, I finally decided to see the test case against which my code was giving wrong answer.
Since I had got the verdict as wrong answer on test case 15, I checked it. Against test case number 15, I found that:
- The output given by my program was empty.
- The checker comment was: "wrong answer Unexpected EOF in the participants output".
So, I concluded that I am getting the verdict as wrong answer most likely because of the fact that my program in not producing the output for this test case.
However, I am unable to fix this problem. I shall be happy if someone could point out why my code is not printing the output for this test case.
Please note that I do have seen the blog posts of some users who had the same problem. Unfortunately, none of them seems to help me. Please do not consider this as a duplicate of those posts.
Thanks for helping me!