(int u, int v, int w, int c)
| 70 | } |
| 71 | |
| 72 | public static void addEdge2(int u, int v, int w, int c) { |
| 73 | next2[++cnt2] = head2[u]; |
| 74 | to2[cnt2] = v; |
| 75 | weight2[cnt2] = w; |
| 76 | color2[cnt2] = c; |
| 77 | head2[u] = cnt2; |
| 78 | } |
| 79 | |
| 80 | public static void rebuild(int u, int fa) { |
| 81 | int last = 0; |