BUGCAL Please help why my code is wrong

Screenshot from 2020-04-21 14-13-02

Here is my solution for the same it is approx same but i have used one condition

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