running correct on ideone and Codeblocks

I am running this code on Codeblocks and ideone.com
there it is running correct and showing the correct output in exact format as specified in problem.
but still am getting wrong answer message.
plz help me in this.
//sourse code

Then. you’re surely missing some test cases. Try harder. You can have a look of already submitted solutions if you still don’t make it. Enjoy coding! :slight_smile: