题目链接:https://www.luogu.org/problemnew/show/P1484首先想到dp,但是复杂度是O(n*k),本题吃不消。假设种k-1棵树时的
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号