Candy I I have tried out a number of test cases and i got the correct answer for every single one of them. I used the spoj toolkit to test more and i again got the answers correct. But i keep getting "wrong answer" when I submit my code.
Can somebody please take a look and tell me what is wrong with my code ?
RE: Fixed the problem. Code: code