Hi, I have spent a lot of time regarding this but could not figure out the problem. I submitted a solution during contest time but it did not got accepted. After the competition I removed some non-used lines and the solution got accepted. The code has same logic but different result. Can anyone suggest what I am missing ?
Question => Contest Page | CodeChef
My Contest Solution ( Wrong Answer )=> Solution: 48119659 | CodeChef
My Practice Solution (Accepted Answer ) => Solution: 48287158 | CodeChef