unordered_map VS map

Revision en1, by Adibov, 2019-01-11 21:29:40

What's wrong with unordered_map? Shouldn't be faster than map? I just submitted two solution with map and unordered_map and first one got TLE while second one got ACC. Could you please say why?

TLE: 48262291

ACC: 48262284

Even i reserved it: 48262508

Tags unordered_map

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Adibov 2019-01-11 21:29:40 318 Initial revision (published)