public static long [ ] solve ( int [ ] ints , int x ) {
  long min ;
  long sum = 0 ;
  long max = 0 ;
  for ( int i = 0 ;
  i < ints . length ;
  i ++ ) {
    sum += ints [ i ] ;
    max += ( long ) Math . ceil ( ( double ) ints [ i ] / x ) ;
  }
  min = ( long ) Math . ceil ( ( double ) sum / x ) ;
  long [ ] result = {
    min , max };
    return result ;
  }
  
public static long [ ] solve ( int [ ] ints , int x ) { long min ; long sum = 0 ; long max = 0 ; for ( int i = 0 ; i < ints . length ; i ++ ) { sum += ints [ i ] ; max += ( long ) Math . ceil ( ( double ) ints [ i ] / x ) ; } min = ( long ) Math . ceil ( ( double ) sum / x ) ; long [ ] result = { min , max } ; return result ; }
(method_declaration (modifiers) type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (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: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (array_access array: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (cast_expression type: (floating_point_type) value: (array_access array: (identifier) index: (identifier))) right: (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (integral_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (cast_expression type: (floating_point_type) value: (identifier)) right: (identifier))))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_initializer (identifier) (identifier)))) (return_statement (identifier))))