Esempio n. 1
0
 public static void main(String[] args) {
   Scanner sc = new Scanner(System.in);
   PrintWriter pw = new PrintWriter(System.out);
   while (sc.hasNextInt()) {
     solve(sc, pw);
   }
   sc.close();
   pw.flush();
   pw.close();
 }
  public static void main(String[] args) throws IOException {
    // in = new BufferedReader(new FileReader("input.txt"));
    // out = new PrintWriter(new FileWriter("output.txt"));
    in = new BufferedReader(new InputStreamReader(System.in));
    out = new PrintWriter(System.out);

    Main.solve();
    out.close();
    in.close();
  }
Esempio n. 3
0
 public static void main(String[] args) throws IOException {
   while (true) {
     Double C = nextDouble();
     if (C == null) {
       PrintWriter writer = new PrintWriter(System.out);
       writer.println(str);
       writer.close();
       return;
     }
     solve(C);
   }
 }
Esempio n. 4
0
 public static void main(String[] args) {
   while (read()) {
     solve();
   }
 }
Esempio n. 5
0
 public static void main(String[] args) throws Exception {
   Main solver = new Main();
   solver.solve();
   solver.end();
 }
Esempio n. 6
0
 public static void main(String[] args) {
   make_prime();
   while (read()) {
     solve();
   }
 }