Solution working in local but failing on CF

Правка en2, от 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.me/contest/1660/submission/263742365

Теги c++, fail in test case

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский a.rjput 2024-06-02 14:42:22 60 Tiny change: 'he same:\nhttps://' -> 'he same:\n\nhttps://' (published)
en1 Английский a.rjput 2024-06-02 14:40:51 443 Initial revision (saved to drafts)