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
相關文章
相關標籤/搜索