Comments

Same question...

Since it is a greedy approach, every one with the idea might implement the way I did, so the coincidence happens simply because we got to the same approach, not cheating.

I think it is easy to come up with similar ideas as my solution and erwin2409's, and we came from different countries so there's no way for us to discuss / share codes with each other.

Oh, I didn't see that, thanks for your clarification.

In Problem B, why does running n*m where n >= 1e5 and m >= 1e5 doesn't get TLE? I was stuck because of this.