当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。

建议使用的浏览器:

谷歌Chrome 火狐Firefox Opera浏览器 微软Edge浏览器 QQ浏览器 360浏览器 傲游浏览器

6585:Desert

题目描述
Tom and Jerry got lost in a desert. But they are not bored or afraid at all, because they found a truly interesting thing to do: researching the varied kinds of kakti in the desert!
After careful observations, they found that a kaktus can be seen as a graph consisting of several nodes. To be precise, an $n$-node kaktus is an undirected connected graph that has only $1$ node as the root, in which every edge belongs to exactly one simple cycle and all nodes are unlabelled. You can refer to sample case for a better understanding.
Finding something new is always exciting, but it brings them new doubts.
"How many different kinds of $n$-node kakti are there?" wondered Tom.
"Your problem is simpler than mine. I am wondering how many different kinds of $1,2,3,..,n$-node kakti there are." said Jerry.
输入解释
One line containing a number $n$ ($1 \leq n \leq 10^5$).
输出解释
$n$ lines, each line containing a number, the number of $n$-node kakti.

As these numbers can be very large, output them modulo $998244353$.
输入样例
4
输出样例
1
1
3
8
提示
ere are the 8 4-node kakti.
来自杭电HDUOJ的附加信息
Recommend

该题目是Virtual Judge题目,来自 杭电HDUOJ

源链接: HDU-6585

最后修改于 2020-10-25T23:32:32+00:00 由爬虫自动更新

共提交 0

通过率 --%
时间上限 内存上限
24000/12000MS(Java/Others) 262144/262144K(Java/Others)