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
