This is my code-[My code](https://codeforces.net/contest/1883/submission/244204675) . I'm getting signed integer overflow error. I'm getting this error inspite of using long long. Any help would be appreciated.↵
Thanks in advance. [Ques link](https://codeforces.net/contest/1883/problem/C)
Thanks in advance. [Ques link](https://codeforces.net/contest/1883/problem/C)