i don't know why this code is giving wrong answer for codechef gift question

Question has been removed due to ongoing contest…

Plz delete your post …No doubts from am ongoing contest will be clarified.There are 1000’s of submitted solutions for this prob…The mistaske lies with your code…just figure out yourself what the error is…now for the time being delete this post…if you have any queries post them after the contest is over…

//