Loading repovive.com/contests/10000/problems/D6A
| # | Title | Points | Solved | Admin | |
|---|---|---|---|---|---|
You are given a connected undirected graph with vertices and edges. The edges are numbered from to . Edge connects and and has color .
It is guaranteed that the graph has a spanning tree whose edges have pairwise distinct colors.
Choose some edges such that:
Let be the number of chosen edges. Your output will be accepted if .
Output followed by the indices of the chosen edges. You may output any set of edges satisfying these conditions.
The selected edges connect all seven vertices and contain no cycle. Their colors, in the displayed order, are , which are pairwise distinct. Also, .