Fuel Mountains (MFUEL)

I’m getting wrong answer can anyone tell me a specific test case or logic where I’m going wrong.
Link to the problem: CodeChef: Practical coding for everyone
Link to my solution: CodeChef: Practical coding for everyone

You just need to add one more line to your code so as to get your solution accepted.

Check line 9 in the following update to your code:

https://www.codechef.com/viewsolution/43920479