Advertisement
lp-gamboa

in/out

Feb 8th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.15 KB | None | 0 0
  1. package scripts; // whatever the package is xd
  2.  
  3. import java.io.*;
  4. import java.util.StringTokenizer;
  5.  
  6. import static java.lang.Double.parseDouble;
  7. import static java.lang.Integer.parseInt;
  8. import static java.lang.Long.parseLong;
  9.  
  10. @SuppressWarnings("all")
  11. public class ProblemaA { // whatever the class name is :v
  12.  
  13.     private static BufferedReader in;
  14.     private static PrintWriter out;
  15.     private static StringTokenizer tok;
  16.  
  17.     public static void main(String[] args) throws Exception {
  18.         in = new BufferedReader(new InputStreamReader(System.in));
  19.         out = new PrintWriter(new OutputStreamWriter(System.out));
  20.         solve();
  21.         in.close();
  22.         out.close();
  23.     }
  24.  
  25.     private static void solve() throws Exception {
  26.     }
  27.  
  28.     private static int nextInt() throws IOException {
  29.         return parseInt(next());
  30.     }
  31.  
  32.     private static long nextLong() throws IOException {
  33.         return parseLong(next());
  34.     }
  35.  
  36.     private static double nextDouble() throws IOException {
  37.         return parseDouble(next());
  38.     }
  39.  
  40.     private static String next() throws IOException {
  41.         while (tok == null || !tok.hasMoreTokens()) {
  42.             tok = new StringTokenizer(in.readLine());
  43.         }
  44.         return tok.nextToken();
  45.     }
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement