alexashu's blog

By alexashu, history, 4 years ago, In English

Yesterday , I gave contest round 702 div3 .

Problem F

Solution 1(https://mirror.codeforces.com/contest/1490/submission/107661957)

Solution 2(https://mirror.codeforces.com/contest/1490/submission/107661859)

In Solution1 I used unordered_map which gave me tle and than i used map in solution 2 it didn't.

Can anyone explain how does unordered_map gave tle and map won't?

Full text and comments »

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