Hi, I am having a hard time debugging this very solution of mine.
It would be of great help if someone could help me by pointing out the mistake in my code. The code fails at test case 57 which is too large.
https://codeforces.net/contest/180/submission/49488873 <- Submission
https://codeforces.net/contest/180/problem/D <- Problem statement.
Thanks in advance!
Nvm, got it!