Invidia's blog

By Invidia, history, 5 years ago, In English

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 ?

  • Vote: I like it
  • -1
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it 0 Vote: I do not like it
datas = datass;

This part works in $$$O(n)$$$, so your code works in $$$O(nm)$$$