sg0310461's blog

By sg0310461, history, 2 years ago, In English

Can anyone tell me why my solution is giving TLE in Codeforces Round 909 (Div. 3) problem D despite being O(n)? My solution for problem D is https://mirror.codeforces.com/contest/1899/submission/233163745 .

  • Vote: I like it
  • +5
  • Vote: I do not like it

»
2 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

See this blog on blowing up unordered_map in C++