public static void func ( ) {
  int opencnt = 0 ;
  for ( int i = 0 ;
  i < 10 ;
  i ++ ) {
    if ( open [ i ] == 0 ) {
      opencnt ++ ;
    }
  }
  if ( opencnt == 10 ) {
    return ;
  }
  int tmp = 0 ;
  for ( int i = 0 ;
  i < n ;
  i ++ ) {
    int cnt = 0 ;
    for ( int j = 0 ;
    j < 10 ;
    j ++ ) {
      if ( open [ j ] == 0 ) {
        continue ;
      }
      else {
        if ( f [ i ] [ j ] == 1 ) {
          cnt ++ ;
        }
      }
    }
    tmp += p [ i ] [ cnt ] ;
  }
  ans = Math . max ( ans , tmp ) ;
}

public static void func ( ) { int opencnt = 0 ; for ( int i = 0 ; i < 10 ; i ++ ) { if ( open [ i ] == 0 ) { opencnt ++ ; } } if ( opencnt == 10 ) { return ; } int tmp = 0 ; for ( int i = 0 ; i < n ; i ++ ) { int cnt = 0 ; for ( int j = 0 ; j < 10 ; j ++ ) { if ( open [ j ] == 0 ) { continue ; } else { if ( f [ i ] [ j ] == 1 ) { cnt ++ ; } } } tmp += p [ i ] [ cnt ] ; } ans = Math . max ( ans , tmp ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters) body: (block (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: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (return_statement))) (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: (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: (decimal_integer_literal)) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (continue_statement)) alternative: (block (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_integer_literal))) consequence: (block (expression_statement (update_expression (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier)))))))