Блог пользователя Hz_

Автор Hz_, история, 4 года назад, По-английски

Problem: https://mirror.codeforces.com/contest/978/problem/F

Solution 1(TLE): https://mirror.codeforces.com/contest/978/submission/98839909

Solution 2(AC): https://mirror.codeforces.com/contest/978/submission/98859922

Here, in solution 1, I used 3 unordered map and getting TLE but when I used 2 unordered map on solution 2 it gets AC. Why this happened while unordered map searches, inserts, and deletes elements in O(1)?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится