static int query ( int prefix [ ] , int suffix [ ] , int L , int R ) {
  if ( prefix [ R ] < L || suffix [ L ] > R ) {
    return 0 ;
  }
  else {
    return prefix [ R ] - suffix [ L ] ;
  }
}

static int query ( int prefix [ ] , int suffix [ ] , int L , int R ) { if ( prefix [ R ] < L || suffix [ L ] > R ) { return 0 ; } else { return prefix [ R ] - suffix [ L ] ; } }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier)) right: (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier)))) consequence: (block (return_statement (decimal_integer_literal))) alternative: (block (return_statement (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier))))))))