hdu 6035 Colorful Tree 樹狀dp

Problem Description There is a tree with  n nodes, each of which has a type of color represented by an integer, where the color of node  i is  ci. The path between each two different nodes is unique,
相關文章
相關標籤/搜索