Guest User

Untitled

a guest
Oct 17th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4. import java.io.OutputStreamWriter;
  5. import java.io.PrintWriter;
  6. import java.util.StringTokenizer;
  7.  
  8.  
  9.  
  10. public class Main implements Runnable {
  11.  
  12. StringTokenizer st;
  13. BufferedReader in;
  14. PrintWriter out;
  15.  
  16. public void run() {
  17. in = new BufferedReader(new InputStreamReader(System.in));
  18. out = new PrintWriter(new OutputStreamWriter(System.out));
  19.  
  20. try {
  21. solve();
  22. } catch (NumberFormatException e) {
  23. e.printStackTrace();
  24. } catch (IOException e) {
  25. e.printStackTrace();
  26. }
  27.  
  28. out.flush();
  29. out.close();
  30.  
  31. }
  32. public static void main(String[]args)
  33. {
  34. new Thread(null,
  35. new Runnable()
  36. {
  37. public void run()
  38. {
  39. new Main().run();
  40. }
  41. },"1",1<<23).start();
  42. }
  43.  
  44. private String nextToken() throws IOException
  45. {
  46. while(st==null || !st.hasMoreTokens())
  47. {
  48. st=new StringTokenizer(in.readLine());
  49. }
  50. return st.nextToken();
  51. }
  52. private int nextInt() throws NumberFormatException, IOException
  53. {
  54.  
  55. return Integer.parseInt(nextToken());
  56. }
  57. private double nextDouble() throws NumberFormatException, IOException
  58. {
  59. return Double.parseDouble(nextToken());
  60. }
  61.  
  62. private void solve() throws NumberFormatException, IOException
  63. {
  64.  
  65.  
  66.  
  67. }
  68.  
  69. }
Add Comment
Please, Sign In to add comment