Prufer Code
摘要:
1069. Prufer CodeTime limit: 0.25 secondMemory limit: 8 MBA tree (i.e. a connected graph without cycles) with vertices is given (N≥2). Vertices of the tree are numbered by the integers 1,…,N. A Prufer code for the tree is built as follows: a leaf (a vertex that is incident to the only edge) with a m 阅读全文
posted @ 2013-07-20 17:33 铁树银花 阅读(672) 评论(0) 推荐(0) 编辑