static boolean f ( double mid ) {
  double girl = mid / ( n * 3 ) ;
  double boy = 2 * mid / ( n * 3 ) ;
  return arr [ 0 ] >= girl && arr [ n ] >= boy ;
}

static boolean f ( double mid ) { double girl = mid / ( n * 3 ) ; double boy = 2 * mid / ( n * 3 ) ; return arr [ 0 ] >= girl && arr [ n ] >= boy ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (binary_expression left: (decimal_integer_literal) right: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (return_statement (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (identifier)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))))))