-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.java
42 lines (33 loc) · 946 Bytes
/
template.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import java.io.*;
import java.util.*;
public class template {
public static void main(String[] args) throws IOException {
FastReader in = new FastReader();
}
}
class FastReader {
private BufferedReader in;
private StringTokenizer line;
public FastReader() throws IOException {
in = new BufferedReader(new InputStreamReader(System.in));
}
public void close() throws IOException {
in.close();
}
public String nextLine() throws IOException {
return in.readLine();
}
private void buffer() throws IOException {
if (line == null || !line.hasMoreTokens()) {
line = new StringTokenizer(in.readLine());
}
}
public String next() throws IOException {
buffer();
return line.nextToken();
}
public int nextInt() throws IOException {
String val = next();
return Integer.parseInt(val);
}
}