Doubt regarding test case for PSAS

Hi,

I think I might be misunderstanding something in the PSAS problem.

For the test case:

4
1 -1 1 -1
3
1 -1 1

I believe the answer should be “NO”, but my solution outputs “YES”.

Could someone please clarify whether this test case should result in “NO”, or if I am missing something in my understanding of the problem?

Thank you.

Here is the link to my submitted code:
https://www.codechef.com/viewsolution/1234649793

1 Like

yes i also think so there are less test cases

output will be no for
4
1 -1 1 -1
but there are less test cases, so both codes are working