正文
增加 1 行删除 1 行
51 行未改动52535455565758596056 行未改动51 行未改动// if (_size[_x] < _size[_y]) {// swap(_x, _y);// }_fa[_x] = _y;_size[_y] += _size[_x];}bool same(int _x, int _y) {assert(1 <= _x && _x <= _n);assert(1 <= _y && _y <= _n);56 行未改动51 行未改动52535455565758596056 行未改动51 行未改动// if (_size[_x] < _size[_y]) {// swap(_x, _y);// }_fa[_x] = _y;_size[_y] += _size[_x];}bool same(int _x, int _y) {assert(1 <= _x && _x <= _n);assert(1 <= _y && _y <= _n);56 行未改动