(int u)
| 184 | } |
| 185 | |
| 186 | public static void solve(int u) { |
| 187 | vis[u] = true; |
| 188 | calc(u); |
| 189 | for (int e = head[u]; e > 0; e = nxt[e]) { |
| 190 | int v = to[e]; |
| 191 | if (!vis[v]) { |
| 192 | solve(getCentroid(v, u)); |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | |
| 197 | public static void main(String[] args) throws Exception { |
| 198 | FastReader in = new FastReader(System.in); |
no test coverage detected