This is my solution for problem C round 61: https://mirror.codeforces.com/contest/1132/submission/58241037 I used a 2d array[N][N] (N = 5000) and a 2d vector. I think the maximum size of the vector is N*N so the memmory of array is approxiate 100MB and vector is 100MB. How could it be MTL? (200MB < 560MB). Thanks.