We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://endsah.cf/blog/Luogu5599-%E5%A4%B1%E6%98%BC%E5%9F%8E%E7%9A%84%E5%AE%88%E6%98%9F%E4%BD%BF/#more
Description给定一棵 $n$ 个节点的树,边有边权,每个节点初始有一个颜色(黑 / 白)。有 $m$ 个操作: 1 x: 翻转 $x$ 节点的颜色。 2 x y: 询问所有黑色节点到 $x \to y$ 这条链上的距离之和。 (定义一个节点到链的距离为到链上节点距离的最小值) $$1 \le n, m \le 2 \times 10 ^5$$
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://endsah.cf/blog/Luogu5599-%E5%A4%B1%E6%98%BC%E5%9F%8E%E7%9A%84%E5%AE%88%E6%98%9F%E4%BD%BF/#more
Description给定一棵$n$ 个节点的树,边有边权,每个节点初始有一个颜色(黑 / 白)。有 $m$ 个操作: 1 x: 翻转 $x$ 节点的颜色。 2 x y: 询问所有黑色节点到 $x \to y$ 这条链上的距离之和。 (定义一个节点到链的距离为到链上节点距离的最小值) $$1 \le n, m \le 2 \times 10 ^5$$
The text was updated successfully, but these errors were encountered: