abnormal unordered_map behaviour

Правка en3, от rating_Infi, 2019-01-04 22:26:09

Can someone help me why unordered_map is out of control in Problem C?

Failed in test case 4 with GNU C++17 submission

Failed in test case 5 with GNU C++14 submission

Passed with Clang++17 Diagnostics submission

Finally passed by changing unordered_map to map submission

I wasted 1hr debugging this during the contest!!

Теги unordered_map

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский rating_Infi 2019-01-04 22:26:09 17 Tiny change: 'ed_map is failing in [Probl' -> 'ed_map is out of control in [Probl'
en2 Английский rating_Infi 2019-01-04 22:16:36 48 Tiny change: '44716)\n\n' -> '44716)\n\nI wasted 1hr debugging this during the contest!!'
en1 Английский rating_Infi 2019-01-04 22:15:10 596 Initial revision (published)