Beispiel #1
0
 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();
 }
Beispiel #2
0
  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();
    }
  }
Beispiel #3
0
  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();
  }
Beispiel #4
0
 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);
   }
 }
Beispiel #5
0
 public static void main(String[] args) throws Exception {
   A solver = new A();
   solver.solve();
   solver.end();
 }