Hello my submission for the problem http://mirror.codeforces.com/problemset/problem/691/D gets MLE while I have seen similar solutions getting passed using lesser memory.Can someone explain what is the reason behind it. My submission http://mirror.codeforces.com/contest/691/submission/19745411 & other similar solutions are http://mirror.codeforces.com/contest/691/submission/19081882 & http://mirror.codeforces.com/contest/691/submission/19274092 & http://mirror.codeforces.com/contest/691/submission/19107997. Thanks!