hi…
Please help and let me know, why my code is generating “wrong Answer”. PFB the link
http://www.codechef.com/viewsolution/6161708
Thanks.
Well, there’s no need for
printf("noh: %d\n", noh);
You only need to output the number of holes. You must have seen the sample output in the question. Change your output to match that , in other words just change the above statement to
printf("%d\n", noh);
1 Like