随笔分类 -  图论——树——LCA

摘要:题目:http://www.lydsy.com/JudgeOnline/problem.php?id=1787刚开始好像很难的样子画了一下,发现好像只有3种情况,且最终的P点一定是两两LCA中的一个。裸的LCA怪不得数据那么大#include#include#include#include#incl... 阅读全文
posted @ 2015-07-18 17:05 maijing 阅读(235) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示