Guest User

Untitled

a guest
Jul 11th, 2011
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. import java.awt.Point;
  2. import java.io.*;
  3. import java.math.BigInteger;
  4. import java.util.*;
  5. import static java.lang.Math.*;
  6.  
  7. public class Solution implements Runnable {
  8.  
  9. BufferedReader in;
  10. PrintWriter out;
  11. StringTokenizer tok = new StringTokenizer("");
  12.  
  13. public static void main(String[] args) {
  14. new Thread(null, new Solution(), "", 256 * (1L << 20)).start();
  15. }
  16.  
  17. public void run() {
  18. try {
  19. long t1 = System.currentTimeMillis();
  20. if (System.getProperty("ONLINE_JUDGE") != null) {
  21. in = new BufferedReader(new InputStreamReader(System.in));
  22. out = new PrintWriter(System.out);
  23. } else {
  24. in = new BufferedReader(new FileReader("input.txt"));
  25. out = new PrintWriter("output.txt");
  26. }
  27. Locale.setDefault(Locale.US);
  28. solve();
  29. in.close();
  30. out.close();
  31. long t2 = System.currentTimeMillis();
  32. System.err.println("Time = " + (t2 - t1));
  33. } catch (Throwable t) {
  34. t.printStackTrace(System.err);
  35. System.exit(-1);
  36. }
  37. }
  38.  
  39. String readString() throws IOException {
  40. while (!tok.hasMoreTokens()) {
  41. tok = new StringTokenizer(in.readLine());
  42. }
  43. return tok.nextToken();
  44. }
  45.  
  46. int readInt() throws IOException {
  47. return Integer.parseInt(readString());
  48. }
  49.  
  50. long readLong() throws IOException {
  51. return Long.parseLong(readString());
  52. }
  53.  
  54. double readDouble() throws IOException {
  55. return Double.parseDouble(readString());
  56. }
  57.  
  58. // solution
  59.  
  60. void solve() throws IOException {
  61.  
  62. }
  63.  
  64. }
Advertisement
Add Comment
Please, Sign In to add comment