2 1
8820 For example, consider a tree with edges $(1, 2)$, $(2, 3)$, $(2, 4)$, $(2, 6)$, $(3, 7)$, and $(4, 5)$. By doing the following steps, one can remove all edges from the tree, so it satisfies the condition in the problem statement: * Choose the path $(1,2,4,5)$ and remove edges $(1,2)$, $(2,4)$, $(4,5)$. * Choose the path $(6,2,3,7)$ and remove edges $(6,2)$, $(2,3)$, $(3,7)$.  There are $8820$ such trees in total.
70 1
273892456 Remember to print the count modulo $998244353$.
12 29
898069699
100000 50
158600909
{
"problem": {
"name": "Remove 2K+1 Edges",
"description": {
"content": "You are given positive integers $N$ and $K$. Consider an undirected tree $T$ with $(2K + 1)N + 1$ vertices labeled from $1$ to $(2K + 1)N + 1$. Among all such trees, find the number, modulo $998244353",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 12000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc070_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given positive integers $N$ and $K$. Consider an undirected tree $T$ with $(2K + 1)N + 1$ vertices labeled from $1$ to $(2K + 1)N + 1$. Among all such trees, find the number, modulo $998244353...",
"is_translate": false,
"language": "English"
}
]
}