Skip to content
New issue

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

[Luogu5599]失昼城的守星使 | K-D Space #21

Open
EndSaH opened this issue Sep 17, 2019 · 0 comments
Open

[Luogu5599]失昼城的守星使 | K-D Space #21

EndSaH opened this issue Sep 17, 2019 · 0 comments

Comments

@EndSaH
Copy link
Owner

EndSaH commented Sep 17, 2019

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$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant