I am trying to solve [DIV2 D problem of Round 197](https://codeforces.com/problemset/problem/339/D) using segment tree. But on test case 7, I am getting runtime error. ↵
Can some one please review my code to find the mistake ?↵
Thanks in advance.↵
My Code — [submission:51594716]
Can some one please review my code to find the mistake ?↵
Thanks in advance.↵
My Code — [submission:51594716]