Pseudoforest

The input consists of multiple test cases. The first line of each test case contains two integers, n(0 < n <= 10000), m(0 <= m <= 100000), which are the number of the vertexes and the number of the edges. The next m lines, each line consists of three integers, u, v, c, which means there is an edge with value c (0 < c <= 10000) between u and v. You can assume that there are no loop and no multiple edges.The last test case is followed by a line containing two zeros, which means the end of the input.

,当你困难失望的时候,最重要的是事瞧得起你自己;

Pseudoforest

相关文章:

你感兴趣的文章:

标签云: