public static void main(String[] args) { InputReader in = new InputReader(System.in); OutputWriter out = new OutputWriter(System.out); Solver solver = new Solver(in, out); solver.solve(); in.close(); out.flush(); out.close(); }
public static void main(String[] args) { try { Solver solver = new Solver(); solver.setup(args); solver.solve(); solver.writeOutput(); } catch (Exception e) { e.printStackTrace(); } }
public static void main(String[] args) { try { // Parse input and set up ProjectParams pp = ProjectParams.fromStdIn(); // System.out.println(pp.getTeams()); // System.out.println(pp); Solver solver = new Solver(pp); // System.out.println(solver + "\n"); // Solve and print solver.solve(); solver.printSolution(); } catch (IOException e) { System.err.println("Error reading data from stdin\n"); e.printStackTrace(); } }