HACK
查看原帖
HACK
746760
User_Unauthorized楼主2023/12/4 09:13

input

4 1
1 2 3 4
1 2
2 3 
3 4
1 4 4

out

4

被 Hack 的题解:https://www.luogu.com.cn/blog/yangkai/p2633-count-on-a-tree

2023/12/4 09:13
加载中...