(int u)
| 228 | } |
| 229 | |
| 230 | public static void getAns2(int u) { |
| 231 | int edge = getCentroidEdge(u, 0); |
| 232 | if (edge > 0) { |
| 233 | vis[edge >> 1] = true; |
| 234 | calc(edge); |
| 235 | getAns2(to2[edge]); |
| 236 | getAns2(to2[edge ^ 1]); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | public static void getAns1(int u, int fa) { |
| 241 | siz[u] = 1; |
no test coverage detected