Can anyone check this solution http://www.codechef.com/viewsolution/4921741 and tell me what’s wrong? Has to be the easiest problem I’ve seen on this site and yet I can’t get the output!?!
There is one thing wrong in your code. Instead of returning 0 in your if condition use continue. That will do the trick.
1 Like
you did not use “\n” in the first printf statement.that caused the error