why my code is giving tle?

Правка en3, от baka-coder, 2024-06-05 10:27:43

264207144 https://codeforces.net/contest/1980/submission/264207144

When I use unordered_map, it gives TLE.

264218228 https://codeforces.net/contest/1980/submission/264218228

However, when I use map instead of unordered_map in the same code, it does not give TLE and gets accepted.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский baka-coder 2024-06-05 10:27:43 62
en2 Английский baka-coder 2024-06-05 10:25:59 10
en1 Английский baka-coder 2024-06-05 10:25:24 332 Initial revision (published)