public static void main ( String [ ] args ) {
  scanning ( ) ;
  bup += edown ;
  dup += edown ;
  W = N * edown - H ;
  bmax = W / bup + 1 ;
  if ( W > 0 ) {
    long Wtemp ;
    kingaku = bmax * ayen ;
    for ( long i = 0 ;
    i < bmax ;
    i ++ ) {
      Wtemp = W - i * bup ;
      kingaku = min ( kingaku , i * ayen + ( Wtemp / dup + 1 ) * cyen ) ;
    }
  }
  System . out . println ( kingaku ) ;
}

public static void main ( String [ ] args ) { scanning ( ) ; bup += edown ; dup += edown ; W = N * edown - H ; bmax = W / bup + 1 ; if ( W > 0 ) { long Wtemp ; kingaku = bmax * ayen ; for ( long i = 0 ; i < bmax ; i ++ ) { Wtemp = W - i * bup ; kingaku = min ( kingaku , i * ayen + ( Wtemp / dup + 1 ) * cyen ) ; } } System . out . println ( kingaku ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (expression_statement (method_invocation name: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (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: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) right: (identifier))))))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (identifier))))))