Why does my code got TLE ?

Правка en1, от Invidia, 2019-07-28 21:17:13

My algorithm isn't far different than the editorial's solution, but I got TLE.

https://codeforces.me/contest/1187/submission/57906449

Is it because I use map ? or because of the erase ? or maybe something else ?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Invidia 2019-07-28 21:17:13 249 Initial revision (published)