Help with beautiful arrays

I am getting wrong answer for the problem ICPC16B. Please help. The link to my submission is:

Dear, the first bug is that you are printing “Yes” and “No” instead of “yes” and “no” .

That one capital letter matters, and can give you WA. Fix it and try again. :slight_smile:

check for all 0 , 1 and -1 in the array.

Thank You. It worked. :slight_smile:

1 Like