| acmsguru |
|---|
| Finished |
a non-oriented graph such that each pair of different vertices is connected by exactly one edge, colored in any of M different colors. Two colored graphs are
if the vertices of the first graph can be renumbered in such a way that it becomes equal to the second graph (i.e. the colors of the edges are the same).9).
sample input | sample output |
1 1 2 | 1 |
sample input | sample output |
3 2 97 | 4 |
sample input | sample output |
3 4 97 | 20 |
| Name |
|---|


