Hi, I am getting TLE in problem http://codeforces.com/contest/449/problem/B at last case only, while some other test cases which has larger inputs than the last one, got passed, Reference to my solution is http://codeforces.com/contest/449/submission/7291622 Can somebody point the error to me?
Thanks
i add one line to your code and i got AC see your AC code :D
Thanks, I got it.