Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- class Main {
- static FastReader sc;
- static PrintWriter out;
- public static void main(String[] args) {
- sc = new FastReader(new InputStreamReader(System.in));
- out = new PrintWriter(System.out);
- solve();
- out.flush();
- out.close();
- }
- static void solve() {
- // Write your code here...
- }
- static class FastReader { // Fast Input Class
- BufferedReader br;
- StringTokenizer st;
- public FastReader(Reader r) {
- br = new BufferedReader(r);
- }
- 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());
- }
- double nextDouble() {
- return Double.parseDouble(next());
- }
- String nextLine() {
- String str = "";
- try {
- str = br.readLine();
- } catch (IOException e) {
- e.printStackTrace();
- }
- return str;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment