Seems Codechef focuses more on corner test cases…!
But please do not display your cases publicly at the time when contest is going on if you have any problem please mail to admin but all this leads to a discussion about the approach for solution, and i think it do not go good with the rules of codechef…!!
I’m also facing the same problem. I’ve tried many test cases on my local machine and my code always gives the correct answer. My code is getting only 3 AC’s. Please help me. Here is the link to my code - http://www.codechef.com/viewsolution/5602314