To all the contestants who took part in BYTES2013,
I couldn’t find any bug with this code,
please help:
http://www.codechef.com/viewsolution/1824188
1 Like
maybe because you don’t print newline after each reversed number in case the answer is “YES”.
P.S. I dint go through your algo entirely.
Input the whole string at once.
scanf("%s", ...);
scanf/cin-works-but-getchar-doesnt-while-taking-strings-as-input
@jbupit >> I don’t want to know how to take input. I want to know why it has produced wrong answer.
@all >> You can also look at this solution which got WA:
http://www.codechef.com/viewsolution/1823203