随笔分类 -  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 阅读全文
posted @ 2019-03-05 19:54 Hëinz 阅读(253) 评论(0) 推荐(0)
摘要:题目描述: 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 阅读全文
posted @ 2019-03-03 10:30 Hëinz 阅读(347) 评论(0) 推荐(0)