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