Problem link : http://mirror.codeforces.com/contest/705/problem/C Solution link :- http://mirror.codeforces.com/contest/705/submission/42254642 Hey guys this code is giving me the runtime error in testcase-2 on submitting it while on running the same test on my system it is giving me correct answer. I literally have no clue of what's happening :( Could anyone plzz help me out!!