Giving Different Results for Different Languages

Hello , I tried to solve the problem Contest Page | CodeChef
in both c++ and python , but only my c++ solution gives AC , why is it so ?

c++ solution : Solution: 53091600 | CodeChef
python solution : Solution: 53091495 | CodeChef