In this codeforces problem , i am getting a memory limit exceded error and i dont know how to optimize it more
My solution is at https://ide.codingblocks.com/s/309390
Please help me to optimize it
In this codeforces problem , i am getting a memory limit exceded error and i dont know how to optimize it more
My solution is at https://ide.codingblocks.com/s/309390
Please help me to optimize it