#P10779. BZOJ4316 小 C 的独立集
BZOJ4316 小 C 的独立集
Problem Description
Given a simple undirected graph , it is guaranteed that each edge belongs to one and only one simple cycle. Find the size of the maximum independent set of .
Input Format
The first line contains two positive integers , representing the number of vertices and the number of edges in the graph.
The next lines each contain two positive integers , describing an undirected edge.
Output Format
Output the size of the maximum independent set of .
5 6
1 2
2 3
3 1
3 4
4 5
3 5
2
Hint
For of the testdata, , and .
Translated by ChatGPT 5