static void sol ( int i , int j , double l , int n , double data [ ] [ ] ) {
  if ( n == 0 ) return ;
  data [ i ] [ j ] += l ;
  if ( data [ i ] [ j ] <= 1.0 ) return ;
  else {
    l = data [ i ] [ j ] - 1.0 ;
    data [ i ] [ j ] = 1.0 ;
    sol ( i + 1 , j , l / 2 , n - 1 , data ) ;
    sol ( i + 1 , j + 1 , l / 2 , n - 1 , data ) ;
  }
}

static void sol ( int i , int j , double l , int n , double data [ ] [ ] ) { if ( n == 0 ) return ; data [ i ] [ j ] += l ; if ( data [ i ] [ j ] <= 1.0 ) return ; else { l = data [ i ] [ j ] - 1.0 ; data [ i ] [ j ] = 1.0 ; sol ( i + 1 , j , l / 2 , n - 1 , data ) ; sol ( i + 1 , j + 1 , l / 2 , n - 1 , data ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier) dimensions: (dimensions))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (return_statement)) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_floating_point_literal))) consequence: (return_statement) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_floating_point_literal)))) (expression_statement (assignment_expression left: (array_access array: (array_access array: (identifier) index: (identifier)) index: (identifier)) right: (decimal_floating_point_literal))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)) (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier))))))))