chefleftright

getting wrong answer for chef leftright after testing it many times and getting right answer,but wrong answer on codechef.code is

//LIVE CONTEST!!!!!! DO NOT POST CODE OR DISCUSS ANYTHING RELATED TO IT TILL THE END OF THE CONTEST

Think a little bit.The test files are right.

i am also getting this problem

//