why code chef is giving wrong answer for my code while its giving me the desired output on my compiler ?
please check whats wrong with my code.
here its is http://www.codechef.com/viewsolution/4406150
your code is giving wrong answer for the foll test case:
1
cccccdrdccccc
Your output : No
Correct output :Yes
I think you have not tested your program extensively …there must be some major flaw in your algo…hope this test case provides you some hint…if you have any doubts comment below…CHEERS HAPPY CODING
but its giving me the correct output i.e. YES for the input cccccdrdccccc
please do check it once more
hey i am not able to check this link i mean its showing me not found
yeah i checked it but really its giving me YES on my compiler
i think you are not using a gcc compiler…is it turbo c?
no its code blocks
hey…you there…?? you checked it??
here’s your accepted answer:
http://www.codechef.com/viewsolution/4407627
The error is you have not terminated a and b strings with a null(’\0’)
character…and you have also not initialized the character variable A.if you find this post helpful upvote and mark my answer as accepted answer…CHEERS HAPPY CODING
thanks and HAPPY CODING