Invidia's blog

By Invidia, history, 7 years ago, In English

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 ?

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

»
7 years ago, hide # |
 
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)$$$