It turns out that I should use scanf(" %c",&ch); instead of scanf(" %c",&ch);
not to accept previously entered new characters. Also, between the below lines,
char str[5]={r1,r2,r3,r4,r5};
printf("%s\n", str);
I have to add str[5]='\0';. Then only it gets accepted. Infact, if I add this
single line str[5]='\0'; on my last 7th submission of the contest, it gives
accepted.
So, The only issue I did not figure out is to add this null escape character or
I should have strict with cin/cout with which I started out initially.
I think I am very unlucky to miss Round 2 just because of this very small
format issues.
Can anyone tell me if there is someway to convince Google Code Jam team to make
me qualify for Round 2?
--
You received this message because you are subscribed to the Google Groups
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-code/020b5600-edb1-4401-bf84-5f3f833a87fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.