如果你80pts wa#1#6
查看原帖
如果你80pts wa#1#6
762199
fulichang楼主2025/8/2 18:28
int find (int x, int y) {
	while (top[x] != top[y]) {
		y = top[y];//这行千万不能写成y = fa[top[y]]
		if (fa[y] == x)
			return y;
		y = fa[y];
	}
	return son[x];
}
2025/8/2 18:28
加载中...