I am getting a runtime error in this problem on test case 19 and I am not sure why is this happening. This is my first time posting on Codeforces so please pardon me for any mistakes.
Link to the problem : http://codeforces.me/contest/149/problem/C Link to my solution : http://codeforces.me/contest/149/submission/33733206
Thank you







