A while ago I was trying to solve 875B - Sorting the Coins this problem.
I eventually got to "solve" the problem and submitted this 242147901, but got TLE. I went to the solved standing and copy the code of this submission 243432260, and got accepted though the logic of this and mine are the same.
Then submitted 251697965 this again and got TLE, now I came back and submitted the EXACT same code 285577179 but got ACCEPTED.
How come this?