TLE for unordered_map while AC for map why?
Difference between en1 and en2, changed 0 character(s)
Getting TLE on using unordered_map, while AC on using map for problem E. Can anyone explain why??(I think unordered_map should be faster than map because its time complexity is O(1) for all operation.)↵

Link for Problem [1077E](https://mirror.codeforces.com/contest/1077/problem/E)↵

Link for [TLE Solution](https://mirror.codeforces.com/contest/1077/submission/56141463)↵

Link for [AC Solution](https://mirror.codeforces.com/contest/1077/submission/56141449)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English gjaiswal108 2019-06-27 14:37:58 0 (published)
en1 English gjaiswal108 2019-06-27 14:37:27 486 Initial revision (saved to drafts)