LOJ6570 毛毛虫计数 题解

$\text{Description}$

定义毛毛虫为一棵树,且该树上存在一条链,使得所有点到该链的距离不超过 $1$。

求 $n$ 点有标号毛毛虫数,对 $998244353$ 取模。

$1\le n\le 10^5$

Your browser is out-of-date!

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

×