Sherlock and Array

  • + 1 comment

    But look at the sample input
    2
    3
    1 2 3
    4
    1 2 3 3
    the result is
    NO
    YES
    if the single element should be YES, the the result should be
    YES
    YES
    NO
    YES
    YES
    right?