[HELP] What is the memory limit of my code

Правка en2, от simp_pro, 2023-12-17 18:02:55

What is the memory limit of my code : https://codeforces.net/contest/1706/submission/237628836

vector a,r : 2*8MB = 16MB

In vector<vector> change, I am pushing a new element only if a previous element is removed. It ensures that number of integers inside this change 2d vector is exactly n at all times. So it should be 8MB(for integers) + 8MB(for each vector)

Overall, it should be 32 MB only. However, it is exceeding 64 MB and giving help

Теги help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский simp_pro 2023-12-17 18:02:55 4 Tiny change: 'sion/237627889\n\nvector' -> 'sion/237628836\n\nvector'
en1 Английский simp_pro 2023-12-17 17:58:39 516 Initial revision (published)