CHEF and GROUND getting "wrong answer"

Hi, this is my first attempt to codechef.
I am getting correct results in my system, for all test cases i can think of.
But i get “wrong answer” when i submit.
I am unable to detect where my code get wrong.
Is there any specific approach or anything to be kept in mind while dealing with this issue.

Thanks :slight_smile:


Hi bit123! Keep on thinking about more test cases! :slight_smile: Although I have realized that there is some problem with that question. Even for very weak cases it should work fine. Hint: Don’t just write your code as the problem statement is formulated. Try anything better. :wink: