Hi, I tried wrote the program for this problem and on CF testing it seems to be failing on **27th test case of 2nd test** i.e.↵
↵
~~~~~↵
4↵
0 -2 1 2↵
~~~~~↵
↵
**In my local this is giving the correct answer** i.e.↵
↵
↵
~~~~~↵
1 0↵
~~~~~↵
↵
On CF, the answer is coming as `2 0` for some reason. Not able to figure out the reason, any help would be appreciated!!↵
↵
Below is the submission of the same:↵
↵
https://mirror.codeforces.com/contest/1660/submission/263742365
↵
~~~~~↵
4↵
0 -2 1 2↵
~~~~~↵
↵
**In my local this is giving the correct answer** i.e.↵
↵
↵
~~~~~↵
1 0↵
~~~~~↵
↵
On CF, the answer is coming as `2 0` for some reason. Not able to figure out the reason, any help would be appreciated!!↵
↵
Below is the submission of the same:↵
↵
https://mirror.codeforces.com/contest/1660/submission/263742365