Strange Memory Limit Exceeded verdict on Kattis?

Правка en1, от bicsi, 2019-11-09 12:53:51

I was recently trying to solve problem K. Kingdom of Ants on Kattis. However, my submission strangely receives a Memory Limit Exceeded verdict, and I can see no way of achieving that with my code.

Code: https://pastebin.com/0sXQaCdi

Do you guys spot any reasons why the above code would give MLE? Maybe some weird C++ undefined behaviour, or maybe some compiler flaw?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский bicsi 2019-11-09 18:14:09 9
en2 Английский bicsi 2019-11-09 13:02:20 259
en1 Английский bicsi 2019-11-09 12:53:51 518 Initial revision (published)