Same Code Different Accepted status.

I’ve submitted the same code twice (differed by a single empty line) but i got two different results in the subtasks,May be its due to Code Optimisation techniques but code optimisation technique should be the same for the same inputs & same code right?.Can anyone help me why does this happen.

Code 1: https://www.codechef.com/viewsolution/18532257

Code 2: https://www.codechef.com/viewsolution/18532371

This might be because of an error of the judge. Recently, I also had an experience where the judge was misbehaving. But I am not sure. I hope @admin might have an answer for this.

1 Like