Why WA in external contest BYTES2013' BYTESA?

To all the contestants who took part in BYTES2013,
I couldn’t find any bug with this code,
please help:

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", ...);


@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:

@aichemzee he has printed a newline