public static void main ( String [ ] args ) throws Exception {
  String inFile ;
  inFile = "C-small-attempt0.in" ;
  sc = new Scanner ( new FileInputStream ( inFile ) ) ;
  fw = new PrintWriter ( new FileWriter ( "output.txt" , false ) ) ;
  int N = sc . nextInt ( ) ;
  sc . nextLine ( ) ;
  for ( int cas = 1 ;
  cas <= N ;
  cas ++ ) {
    fw . print ( "Case #" + cas + ": " ) ;
    Object res = new C ( ) . solve ( ) ;
    if ( res instanceof Double ) fw . printf ( "%.10f\n" , res ) ;
    else fw . printf ( "%s\n" , res ) ;
    fw . flush ( ) ;
  }
  fw . close ( ) ;
  sc . close ( ) ;
}

public static void main ( String [ ] args ) throws Exception { String inFile ; inFile = " C - small - attempt0 . in " ; sc = new Scanner ( new FileInputStream ( inFile ) ) ; fw = new PrintWriter ( new FileWriter ( " output . txt " , false ) ) ; int N = sc . nextInt ( ) ; sc . nextLine ( ) ; for ( int cas = 1 ; cas <= N ; cas ++ ) { fw . print ( " Case ▁ # " + cas + " : ▁ " ) ; Object res = new C ( ) . solve ( ) ; if ( res instanceof Double ) fw . printf ( " % .10f \n " , res ) ; else fw . printf ( " % s \n " , res ) ; fw . flush ( ) ; } fw . close ( ) ; sc . close ( ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) (throws (type_identifier)) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (string_literal))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (string_literal) (false))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (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 (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (string_literal) right: (identifier)) right: (string_literal))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (object_creation_expression type: (type_identifier) arguments: (argument_list)) name: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (instanceof_expression left: (identifier) right: (type_identifier))) consequence: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (identifier)))) alternative: (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (string_literal) (identifier))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))))