MCPcopy Create free account
hub / github.com/algorithmzuo/algorithm-journey / main

Method main

src/class027/Code02_MaxCover.java:27–44  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

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 // 堆的清空

Callers

nothing calls this directly

Calls 4

computeMethod · 0.95
printlnMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected