4 0 1 -1 0 1 0 -1 -1 -1 -1 0 0 0 -1 0 0
2 We need an edge between Vertex $1$ and Vertex $2$, and we must not add an edge between Vertex $1$ and Vertex $4$ or between Vertex $3$ and Vertex $4$. Thus, we have the following two valid graphs: 
3 0 1 1 1 0 1 1 1 0
0
3 0 0 0 0 0 0 0 0 0
0
11 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 0
357947677 When we distinguish the vertices, there are $11^9$ trees with $11$ vertices.
{
"problem": {
"name": "Spanning Tree",
"description": {
"content": "We have a graph with $N$ vertices numbered $1, 2, \\dots, N$. Initially, it has no edges. Now, let us add some number of undirected edges to $G$ so that the following condition holds for any $i, j\\,(",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "jsc2021_g"
},
"statements": [
{
"statement_type": "Markdown",
"content": "We have a graph with $N$ vertices numbered $1, 2, \\dots, N$. Initially, it has no edges. \nNow, let us add some number of undirected edges to $G$ so that the following condition holds for any $i, j\\,(...",
"is_translate": false,
"language": "English"
}
]
}