public static void main ( String [ ] args ) {
  Scanner sc = new Scanner ( System . in ) ;
  int scene = sc . nextInt ( ) ;
  for ( int k = 0 ;
  k < scene ;
  k ++ ) {
    int n = sc . nextInt ( ) ;
    int x = sc . nextInt ( ) ;
    int list1Cnt = 0 ;
    int list2Cnt = 0 ;
    for ( int i = 0 ;
    i < n ;
    i ++ ) {
      int temp = sc . nextInt ( ) ;
      if ( temp % 2 != 0 ) {
        list1Cnt ++ ;
      }
      else {
        list2Cnt ++ ;
      }
    }
    boolean result = false ;
    if ( list2Cnt >= x - 1 ) {
      result = list1Cnt >= 1 ;
    }
    else {
      if ( ( x - list2Cnt ) % 2 == 1 ) {
        result = list1Cnt >= x - list2Cnt ;
      }
      else {
        if ( list2Cnt == 0 ) {
          result = false ;
        }
        else {
          result = list1Cnt >= x - list2Cnt + 1 ;
        }
      }
    }
    System . out . println ( result ? "YES" : "NO" ) ;
  }
}

public static void main ( String [ ] args ) { Scanner sc = new Scanner ( System . in ) ; int scene = sc . nextInt ( ) ; for ( int k = 0 ; k < scene ; k ++ ) { int n = sc . nextInt ( ) ; int x = sc . nextInt ( ) ; int list1Cnt = 0 ; int list2Cnt = 0 ; for ( int i = 0 ; i < n ; i ++ ) { int temp = sc . nextInt ( ) ; if ( temp % 2 != 0 ) { list1Cnt ++ ; } else { list2Cnt ++ ; } } boolean result = false ; if ( list2Cnt >= x - 1 ) { result = list1Cnt >= 1 ; } else { if ( ( x - list2Cnt ) % 2 == 1 ) { result = list1Cnt >= x - list2Cnt ; } else { if ( list2Cnt == 0 ) { result = false ; } else { result = list1Cnt >= x - list2Cnt + 1 ; } } } System . out . println ( result ? " YES " : " NO " ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list (field_access object: (identifier) field: (identifier)))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier)))) alternative: (block (expression_statement (update_expression (identifier))))))) (local_variable_declaration type: (boolean_type) declarator: (variable_declarator name: (identifier) value: (false))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))))) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))))) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (false)))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))))))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (ternary_expression condition: (identifier) consequence: (string_literal) alternative: (string_literal)))))))))