Question link: https://codeforces.net/contest/1334/problem/C.
I will attach my code further, in that in 3rd test case my answer coming incorrect but when I compiling same testcase in my VSCode then I get the correct results and I don't know why it is happening so please anyone helps me to resolve this. Thank You
Code link: https://codeforces.net/contest/1334/submission/76727603