map VS unordered_map.

Правка en2, от timur_jalgasbaev, 2024-10-25 18:52:42

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.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский timur_jalgasbaev 2024-10-25 18:52:42 8
en1 Английский timur_jalgasbaev 2024-10-25 17:35:24 517 Initial revision for English translation
ru1 Русский timur_jalgasbaev 2024-10-25 17:34:24 587 Первая редакция (опубликовано)