#P5827. 点双连通图计数

    ID: 6575 远端评测题 4000ms 500MiB 尝试: 0 已通过: 0 难度: 9 上传者: 标签>数学O2优化组合数学生成函数快速傅里叶变换 FFT快速数论变换 NTT

点双连通图计数

Background

Problem Description

Find the number of labeled vertex-biconnected graphs on nn vertices (a simple undirected graph, and the whole graph is one vertex-biconnected component). Output the answer modulo 998244353998244353.

Input Format

There are five lines in total. Each line contains one integer nn, representing one query.

Output Format

There are five lines in total. Each line contains one integer, representing the answer to one query.

1
2
3
4
5

1
1
1
10
238

Hint

Constraints: 1n1051 \le n \le 10^5.

Translated by ChatGPT 5