()
| 100 | } |
| 101 | |
| 102 | public static void undo() { |
| 103 | for (int fx, fy; opsize > 0; opsize--) { |
| 104 | fx = rollback[opsize][0]; |
| 105 | fy = rollback[opsize][1]; |
| 106 | fa[fy] = fy; |
| 107 | siz[fx] = rollback[opsize][2]; |
| 108 | maxa[fx] = rollback[opsize][3]; |
| 109 | maxb[fx] = rollback[opsize][4]; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | public static boolean check(int x, int y, int a, int b) { |
| 114 | int fx = find(x); |