摘要: 题目描述 Description Consider a tree T with N (1 <= N <= 20,000) nodes numbered 1...N. Deleting any node from the tree yields a forest: a collection of on 阅读全文
posted @ 2017-06-25 23:20 小飞淙的云端 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Description 松鼠的新家是一棵树,前几天刚刚装修了新家,新家有n个房间,并且有n-1根树枝连接,每个房间都可以相互到达,且俩个房间之间的路线都是唯一的。天哪,他居然真的住在“树”上。松鼠想邀请****前来参观,并且还指定一份参观指南,他希望**能够按照他的指南顺序,先去a1,再去 阅读全文
posted @ 2017-06-25 22:57 小飞淙的云端 阅读(124) 评论(0) 推荐(0) 编辑