[CF750G]New Year and Binary Tree Paths

New Year and Binary Tree Paths

题解

很显然,路径分单链与非单链两种情况,我们可以分别考虑两者。

对于单链:

我们考虑一个长度为 h h h的链从点 x x

posted @ 2021-10-11 18:58  StaroForgin  阅读(5)  评论(0)    收藏  举报  来源