public static int solve ( int c , int v , int v1 , int a , int l ) {
  int counter = 0 ;
  for ( int i = 0 ;
  i < c ;
  i += v ) {
    if ( i != 0 ) {
      if ( v + a < v1 ) {
        v += a ;
      }
      else {
        v = v1 ;
      }
      i -= l ;
    }
    counter ++ ;
  }
  return counter ;
}

public static int solve ( int c , int v , int v1 , int a , int l ) { int counter = 0 ; for ( int i = 0 ; i < c ; i += v ) { if ( i != 0 ) { if ( v + a < v1 ) { v += a ; } else { v = v1 ; } i -= l ; } counter ++ ; } return counter ; }
(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)) (formal_parameter type: (integral_type) name: (identifier)) (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: (identifier)) update: (assignment_expression left: (identifier) right: (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (update_expression (identifier))))) (return_statement (identifier))))