版本比较
信競轉生~到了文化課就拿出真本事~
正文
增加 40 行删除 0 行
120 行未改动全部展开121122123124120 行未改动全部展开我們可以欽定哪一個子樹沒有選,那麽就是對於某一子樹所有 $\min(len,g) \le mid$ 的求 $f$ 的最小值。然後只要這個加上 $f(root)-\sum_{son\neq ThisSon} f(d)$ 不大於 $k$ 那麽答案同樣是可行的。120 行未改动全部展开121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164120 行未改动全部展开我們可以欽定哪一個子樹沒有選,那麽就是對於某一子樹所有 $\min(len,g) \le mid$ 的求 $f$ 的最小值。然後只要這個加上 $f(root)-\sum_{son\neq ThisSon} f(d)$ 不大於 $k$ 那麽答案同樣是可行的。来袭,史上最野。> I don't care>> Care if I'm old>> I don't mind>> Mind, I don't have a mind>> Get away>> Away, away from your home>> I'm afraid>> Afraid, afraid of a ghost>> Even if you have>> Even if you need>> I don't mean to stare>> We don't have to breed>> We can plant a house>> We can build a tree>> I don't even care>> We could have all three>> She said>> -- Breed by Nirvana哦,出分了啊,$325$ 原来。