@@ -0,0 +1,860 @@
+import java.io.*;%0Aimport java.util.*;%0A%0Apublic class Template %7B%0A%0A%09public static void main(String%5B%5D args) throws IOException %7B%0A%09%09IO io = new IO(System.in);%0A%0A%09%09%0A%09%09%0A%09%09io.close();%0A%09%7D%0A%0A%09static class IO extends PrintWriter %7B%0A%09%09static BufferedReader r;%0A%09%09static StringTokenizer t;%0A%0A%09%09public IO(InputStream i) %7B%0A%09%09%09super(new BufferedOutputStream(System.out));%0A%09%09%09r = new BufferedReader(new InputStreamReader(i));%0A%09%09%09t = new StringTokenizer(%22%22);%0A%09%09%7D%0A%0A%09%09public String next() throws IOException %7B%0A%09%09%09while (!t.hasMoreTokens()) %7B%0A%09%09%09%09t = new StringTokenizer(r.readLine());%0A%09%09%09%7D%0A%09%09%09return t.nextToken();%0A%09%09%7D%0A%0A%09%09public int nextInt() throws IOException%7B%0A%09%09%09return Integer.parseInt(next());%0A%09%09%7D%0A%0A%09%09public long nextLong() throws IOException %7B%0A%09%09%09return Long.parseLong(next());%0A%09%09%7D%0A%0A%09%09public double nextDouble() throws IOException %7B%0A%09%09%09return Double.parseDouble(next());%0A%09%09%7D%0A%09%7D%0A%7D

add new java template