(int x, int y, int a, int b)
| 111 | } |
| 112 | |
| 113 | public static boolean check(int x, int y, int a, int b) { |
| 114 | int fx = find(x); |
| 115 | int fy = find(y); |
| 116 | return fx == fy && maxa[fx] == a && maxb[fx] == b; |
| 117 | } |
| 118 | |
| 119 | public static void compute(int l, int r) { |
| 120 | // 重要剪枝 |