摘要: Description 2020年,人类在火星上建立了一个庞大的基地群,总共有n个基地。起初为了节约材料,人类只修建了n-1条道路来 连接这些基地,并且每两个基地都能够通过道路到达,所以所有的基地形成了一个巨大的树状结构。如果基地A到 基地B至少要经过d条道路的话,我们称基地A到基地B的距离为d。由 阅读全文
posted @ 2017-11-03 21:23 NaVi_Awson 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John wants to set up a telephone line at his farm. Unfortunately, the phone company is uncooperative, so he needs to pay for some o 阅读全文
posted @ 2017-11-03 15:31 NaVi_Awson 阅读(207) 评论(0) 推荐(1) 编辑