map против unordered_map.

Revision en1, by TlMUR, 2024-10-25 17:35:24

In yesterday's Div 3 contest in problem D, I used unordered_map to store elements, thinking it would be faster, but someone cracked my code, and my friend who had almost the same code, but used map instead of unordered_map, could not be cracked. Why was my code hacked, because unordered_map is faster than map, right? I have not been able to reach a clear answer to this question. So I ask from the respected Codeforces community, why did this happen? Thanks in advance for your answer.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English TlMUR 2024-10-25 18:52:42 8
en1 English TlMUR 2024-10-25 17:35:24 517 Initial revision for English translation
ru1 Russian TlMUR 2024-10-25 17:34:24 587 Первая редакция (опубликовано)