脑洞题专题

URAL 1069 Prufer Code 树结构脑洞题

1069. Prufer Code Time limit: 0.25 second Memory limit: 8 MB A tree (i.e. a connected graph without cycles) with vertices is given ( N ≥ 2). Vertices of the tree are numbered by the integer