TLE for unordered_map while AC for map why?

Правка en2, от gjaiswal108, 2019-06-27 14:37:58

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

Теги #tle, unordered_map, map

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский gjaiswal108 2019-06-27 14:37:58 0 (published)
en1 Английский gjaiswal108 2019-06-27 14:37:27 486 Initial revision (saved to drafts)