4 4 4 1 3 2 1 2 2 3 3 4 1 4
4 The following $4$ sequences satisfy the conditions: * $(1, 2, 1, 2, 3)$ * $(1, 2, 3, 2, 3)$ * $(1, 4, 1, 4, 3)$ * $(1, 4, 3, 4, 3)$ On the other hand, $(1, 2, 3, 4, 3)$ and $(1, 4, 1, 2, 3)$ do not, since there are odd number of occurrences of $2$.
6 5 10 1 2 3 2 3 2 4 4 6 3 6 1 5
0 The graph is not necessarily connected.
10 15 20 4 4 6 2 6 2 7 5 7 4 5 2 4 3 7 1 7 1 4 2 9 5 10 1 3 7 8 7 9 1 6 1 2
952504739 Find the answer modulo $998244353$.
{
"problem": {
"name": "King Bombee",
"description": {
"content": "You are given a simple undirected graph with $N$ vertices and $M$ edges. The vertices are numbered from $1$ through $N$, and the edges are numbered from $1$ through $M$. Edge $i$ connects Vertex $U_i$",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc244_e"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given a simple undirected graph with $N$ vertices and $M$ edges. The vertices are numbered from $1$ through $N$, and the edges are numbered from $1$ through $M$. Edge $i$ connects Vertex $U_i$...",
"is_translate": false,
"language": "English"
}
]
}