What is the memory limit of my code : https://codeforces.me/contest/1706/submission/23762788936↵
↵
vector<int> a,r : 2*8MB = 16MB↵
↵
In vector<vector<int>> 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<vector>)↵
↵
Overall, it should be 32 MB only. However, it is exceeding 64 MB and giving help↵
↵
↵
↵
vector<int> a,r : 2*8MB = 16MB↵
↵
In vector<vector<int>> 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<vector>)↵
↵
Overall, it should be 32 MB only. However, it is exceeding 64 MB and giving help↵
↵
↵