Giving wrong answer

https://ide.codingblocks.com/s/58780
https://hack.codingblocks.com/contests/c/471/1604

help here please…

Hey Gaurav, please try not to post your same doubt multiple times, I have resolved your doubt in this thread, for any further queries in this problem please reply to http://discuss.codingblocks.com/t/wrong-answer-in-2-testcases/4863 thread only.