Hi, In this question I posted my code by it seems that it gets overflow at some point of my code.
But I'm getting %MOD every time I want to subtract or sum things.
Problem link ==> https://codeforces.net/problemset/problem/474/D.
My Submission==> 55651145