| 25 | public static int n; |
| 26 | |
| 27 | public static void main(String[] args) throws IOException { |
| 28 | BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); |
| 29 | StreamTokenizer in = new StreamTokenizer(br); |
| 30 | PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); |
| 31 | while (in.nextToken() != StreamTokenizer.TT_EOF) { |
| 32 | n = (int) in.nval; |
| 33 | for (int i = 0; i < n; i++) { |
| 34 | in.nextToken(); |
| 35 | line[i][0] = (int) in.nval; |
| 36 | in.nextToken(); |
| 37 | line[i][1] = (int) in.nval; |
| 38 | } |
| 39 | out.println(compute()); |
| 40 | } |
| 41 | out.flush(); |
| 42 | out.close(); |
| 43 | br.close(); |
| 44 | } |
| 45 | |
| 46 | public static int compute() { |
| 47 | // 堆的清空 |