You are viewing a single comment's thread. Return to all comments →
FastIO guy. Sample:
class FastIO { BufferedReader br; StringTokenizer st; public FastIO() { 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()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } For Output use that: OutputStream out = System.out; out.write(String.valueOf("<YOUR RESULT>\n").getBytes());
It's the more rapid IO for java that I have experimented. For Scala is too excelent.
All the best,
Seems like cookies are disabled on this browser, please enable them to open this website
Down to Zero II
You are viewing a single comment's thread. Return to all comments →
FastIO guy. Sample:
It's the more rapid IO for java that I have experimented. For Scala is too excelent.
All the best,