Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.20 KB | None | 0 0
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4.  
  5. public class Olymp {
  6.  
  7.     void solve() throws IOException {
  8.  
  9.     }
  10.  
  11.     BufferedReader in;
  12.     PrintWriter out;
  13.     StringTokenizer tok;
  14.  
  15.     void run() throws IOException {
  16.         in = new BufferedReader(new InputStreamReader(System.in));
  17.         out = new PrintWriter(System.out);
  18.         tok = new StringTokenizer(" ");
  19.  
  20.         solve();
  21.         out.close();
  22.     }
  23.  
  24.     public static void main(String[] args) throws IOException {
  25.         new Olymp().run();
  26.     }
  27.  
  28.     String delimer = " ";
  29.  
  30.     String readLine() throws IOException {
  31.         return in.readLine();
  32.     }
  33.  
  34.     String readString() throws IOException {
  35.         while (!tok.hasMoreTokens())
  36.             tok = new StringTokenizer(readLine(), delimer);
  37.         return tok.nextToken();
  38.     }
  39.  
  40.     int readInt() throws IOException {
  41.         return Integer.parseInt(readString());
  42.     }
  43.  
  44.     long readLong() throws IOException {
  45.         return Long.parseLong(readString());
  46.     }
  47.  
  48.     int[] readIntArray(int n) throws IOException {
  49.         int[] ans = new int[n];
  50.         for (int i = 0; i < n; i++) {
  51.             ans[i] = readInt();
  52.         }
  53.         return ans;
  54.     }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement