图
xiao1guaishou
这个作者很懒,什么都没留下…
展开
-
PAT 1013 Battle Over Cities (25 分)
题目:It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if ...原创 2019-08-23 23:27:37 · 119 阅读 · 0 评论 -
PAT A1021 Deepest Root (25 分)
题目A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a r...原创 2019-08-25 23:50:21 · 144 阅读 · 0 评论