| acmsguru |
|---|
| Finished |
subset of cities. A subset of cities is called
if it is possible to get from any city of the subset to all other cities of the subset.
if, after it is changed from one-way to two-way, the degree of road system development becomes equal to w. Your task is to find all
roads. sample input | sample output |
5 4 1 2 2 3 1 3 4 1 | 3 1 3 |
sample input | sample output |
3 4 1 2 2 1 1 3 3 1 | 3 4 1 2 3 4 |
| Name |
|---|


