[HELP] What is the memory limit of my code

Revision en2, by simp_pro, 2023-12-17 18:02:55

What is the memory limit of my code : https://mirror.codeforces.com/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

Tags help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English simp_pro 2023-12-17 18:02:55 4 Tiny change: 'sion/237627889\n\nvector' -> 'sion/237628836\n\nvector'
en1 English simp_pro 2023-12-17 17:58:39 516 Initial revision (published)