(Memory Limit Exceeded)

Правка en4, от CrocHold, 2021-06-11 12:50:20

I was solving https://mirror.codeforces.com/contest/1283/problem/D , and created this code https://mirror.codeforces.com/contest/1283/submission/118870482 for it, it gives correct outputs, but i'm getting this error- memory limit exceeded at test 5

I researched a bit online and found that removing push_back statements and defining size of 2d vector should help. but when i tried to do that usin a 1 d array...i got a worse memory limit exceeded error.. at test 3 only.

If anyone has any idea whats wrong, kindly do let me know. thanks!

Теги *1800, #graphs, memory limit, #shortest_path

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский CrocHold 2021-06-11 12:50:20 13
en3 Английский CrocHold 2021-06-10 22:45:53 3 Tiny change: 'g size of vector sh' -> 'g size of 2d vector sh'
en2 Английский CrocHold 2021-06-10 22:44:58 4 Tiny change: 't test 5\ni researche' -> 't test 5\n\nI researche'
en1 Английский CrocHold 2021-06-10 22:43:53 565 Initial revision (published)