思路:莫队+分块

子树上的查询问题可以通过$DFS$序转换为序列问题

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×