随笔分类 - SPOJ
摘要:题目描述: You are given a tree (an acyclic undirected connected graph) with N nodes, and nodes numbered 1,2,3...,N. Each edge has an integer value assigne
阅读全文
摘要:题目描述: You are given a tree (an acyclic undirected connected graph) with N nodes. The tree nodes are numbered from 1 to N. We define dist(a, b) as the
阅读全文

浙公网安备 33010602011771号