sg0310461's blog

By sg0310461, history, 13 months 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

»
13 months ago, # |
  Vote: I like it +5 Vote: I do not like it

See this blog on blowing up unordered_map in C++