#bzoj4116. Tours
Tours
Question Description
Given an undirected graph with vertices and edges, you need to choose a number of color types , and then use these colors to color each edge. For any simple cycle in the graph, the number of edges of each color should be the same. Find all feasible
Input format
The first line contains two positive integers
Next, lines, each line containing two positive integers representing an undirected edge
The data ensures no multiple edges and no self-loops
Output format
Output all possible values of on one line
Example
Note: Input in increasing order
6 6
1 2
2 3
1 3
1 4
2 5
3 6
1 3
Data Range and Conventions
For of the data: .