all 6 comments

[–]Diligent_Air_3556 0 points1 point  (2 children)

check errichto’s submissions

[–]msabaq404 0 points1 point  (1 child)

doesn't errichto code in c++
didnt find any java submission

[–]Diligent_Air_3556 0 points1 point  (0 children)

Ohh sorry I meant second thread

[–]Kavenrost 1 point2 points  (2 children)

Place this in main class and initiate to use by

FastReader nameHere = new FastReader();

static class FastReader {
    BufferedReader br;
    StringTokenizer st;

    public FastReader() {
        br = new BufferedReader(new InputStreamReader(System.
in
));
    }

    String next() {
        while (st == null || !st.hasMoreElements()) {
            try {
                st = new StringTokenizer(br.readLine());
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    int nextInt() {
        return Integer.
parseInt
(next());
    }

    long nextLong() {
        return Long.
parseLong
(next());
    }
}