static int f ( int x , int y ) {
  int best = 0 ;
  for ( int i = 0 ;
  i < n - x + 1 ;
  i ++ ) {
    for ( int j = 0 ;
    j < n - y + 1 ;
    j ++ ) {
      best = Math . max ( best , cum [ i + x ] [ j + y ] - cum [ i + x ] [ j ] - cum [ i ] [ j + y ] + cum [ i ] [ j ] ) ;
    }
  }
  return best ;
}

static int f ( int x , int y ) { int best = 0 ; for ( int i = 0 ; i < n - x + 1 ; i ++ ) { for ( int j = 0 ; j < n - y + 1 ; j ++ ) { best = Math . max ( best , cum [ i + x ] [ j + y ] - cum [ i + x ] [ j ] - cum [ i ] [ j + y ] + cum [ i ] [ j ] ) ; } } return best ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (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: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (binary_expression left: (array_access array: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (identifier))) index: (binary_expression left: (identifier) right: (identifier))) right: (array_access array: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (identifier))) index: (identifier))) right: (array_access array: (array_access array: (identifier) index: (identifier)) index: (binary_expression left: (identifier) right: (identifier)))) right: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier))))))))))) (return_statement (identifier))))