PAT甲级A1053 Path of Equal Weight (30 分)

Given a non-empty tree with root RRR, and with weight WiW_iW​i​​ assigned to each tree node TiT_iT​i​​. The weight of a path from RRR to LLL is defined to be the sum of the weights of all the nodes al
相关文章
相关标签/搜索