Exemplo n.º 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();
 }
Exemplo n.º 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();
    }
  }
Exemplo n.º 3
0
Arquivo: A.java Projeto: t8m8/AtCoder
  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();
  }
Exemplo n.º 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);
   }
 }
Exemplo n.º 5
0
Arquivo: A.java Projeto: jmankhan/ACM
 public static void main(String[] args) throws Exception {
   A solver = new A();
   solver.solve();
   solver.end();
 }