My algorithm isn't far different than the editorial's solution, but I got TLE.
https://codeforces.com/contest/1187/submission/57906449
Is it because I use map ? or because of the erase ? or maybe something else ?
My algorithm isn't far different than the editorial's solution, but I got TLE.
https://codeforces.com/contest/1187/submission/57906449
Is it because I use map ? or because of the erase ? or maybe something else ?