#P5828. 边双连通图计数

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

边双连通图计数

Problem Description

Find the number of labeled edge-biconnected graphs on nn vertices (simple undirected graphs where the whole graph is a single edge-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
0
1
10
253

Hint

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

Translated by ChatGPT 5