#P7275. 计树
计树
Description
Find how many different labeled unrooted trees with vertices satisfy the following condition: for every vertex , there exists a vertex such that there is an edge between and , and . Output the answer modulo .
Input Format
One line with one positive integer .
Output Format
One line with one integer, the required answer.
4
4
209
21754876
5
11
6
56
Hint
[Sample Explanation #1]

The trees in Sample #1 that satisfy the condition are shown in the figure above.
[Constraints]
This problem contains test points, with points for each test point.
| Test point ID | Range of |
|---|---|
For all test points, is a positive integer and 。
Translated by ChatGPT 5
京公网安备 11011102002149号