Sets May Be Good
시간 제한2초메모리 제한1024 MB
무방향 그래프에서 내부에 포함된 간선 수가 짝수인 정점 부분집합의 개수를 998244353으로 나눈 나머지를 구한다.
문제
Consider an undirected graph with vertices. A subset of its vertices is good if the total number of edges between them (edges such that both their ends are in this subset) is even. How many good sets are there? Since this number may be large, output it modulo prime number .
입력
The first line contains two integers and (, ): the number of vertices and edges in the graph, respectively.
Each of the following lines contains two numbers and (): the vertices connected by an edge.
The graph is guaranteed to contain no loops or multiple edges.
출력
Output the number of good sets modulo .
힌트
In the second example, all sets are good. In the third example, the only non-good set is .