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

Method main

src/class142/Code05_Balance.java:88–107  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

86 }
87
88 public static void main(String[] args) throws IOException {
89 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
90 PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
91 String[] numbers = br.readLine().split(" ");
92 n = Integer.valueOf(numbers[0]);
93 a = Integer.valueOf(numbers[1]);
94 b = Integer.valueOf(numbers[2]);
95 char[] line;
96 for (int i = 1; i <= n; i++) {
97 line = br.readLine().toCharArray();
98 for (int j = 1; j <= n; j++) {
99 s[i][j] = line[j - 1];
100 }
101 }
102 compute();
103 out.println(ans1 + " " + ans2 + " " + ans3);
104 out.flush();
105 out.close();
106 br.close();
107 }
108
109}

Callers

nothing calls this directly

Calls 6

computeMethod · 0.95
readLineMethod · 0.80
splitMethod · 0.45
printlnMethod · 0.45
flushMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected