Solution working in local but failing on CF

Revision en2, by a.rjput, 2024-06-02 14:42:22

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://codeforces.net/contest/1660/submission/263742365

Tags c++, fail in test case

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English a.rjput 2024-06-02 14:42:22 60 Tiny change: 'he same:\nhttps://' -> 'he same:\n\nhttps://' (published)
en1 English a.rjput 2024-06-02 14:40:51 443 Initial revision (saved to drafts)