#P3388. 【模板】割点(割顶)
【模板】割点(割顶)
Description
Given an undirected graph with vertices and edges, find all articulation points of the graph.
Input Format
The first line contains two positive integers and . Each of the next lines contains two positive integers and , indicating there is an edge between and .
Output Format
On the first line, output the number of articulation points. On the second line, output the vertices in increasing order of their indices, separated by spaces.
6 7
1 2
1 3
1 4
2 5
3 5
4 5
5 6
1
5
Hint
For all testdata, , . Vertex indices are greater than and at most . The graph is not necessarily connected.
Translated by ChatGPT 5
京公网安备 11011102002149号