TLE for unordered_map while AC for map why?

Revision en1, by gjaiswal108, 2019-06-27 14:37:27

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

Link for TLE Solution

Link for AC Solution

Tags #tle, unordered_map, map

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)