Hi,
I am trying to solve this problem : http://mirror.codeforces.com/contest/664/problem/B
Here is my code : http://ideone.com/fWgQEn
I am getting Runtime Error on Test Case 5, even though my answer is correct.
Can anyone tell me what could be the reason of this.
TIA!