public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; MyInputReader in = new MyInputReader(inputStream); MyOutputWriter out = new MyOutputWriter(outputStream); A solver = new A(); int testCount = Integer.parseInt(in.next()); for (int i = 1; i <= testCount; i++) solver.solve(i, in, out); out.close(); }
public void run() { try { in = new FastScanner(new File("topsort.in")); out = new PrintWriter(new File("topsort.out")); solve(); out.close(); } catch (IOException e) { e.printStackTrace(); } }
public static void main(String[] args) { debug = args.length > 0; long start = System.currentTimeMillis(); solve(); out.flush(); long end = System.currentTimeMillis(); dump((end - start) + "ms"); in.close(); out.close(); }
public void run() { Locale.setDefault(Locale.US); try { sc = new FastScanner("access.in"); out = new PrintWriter("access.out"); solve(); sc.close(); out.close(); } catch (Throwable e) { e.printStackTrace(); System.exit(1); } }
public static void main(String[] args) throws Exception { A solver = new A(); solver.solve(); solver.end(); }