Sherlock and Array

  • + 56 comments

    For the test cases which contains a single element, make sure that you print YES, otherwise you will fail the Test #6. I think it is a huge mistake of the author, because it is not specified at all!

    For example for input:

    1

    1

    1

    Make sure your answer is:

    YES