Sherlock and Array

  • + 3 comments

    You need to do this:

    if( arrSize ==1){
    int c = in.nextInt(); System.out.println("YES");
    continue; }

    where c is the current input from STDN. and you continue so that you can go to the next testcase.