AmazingCounters.com
摘要: DescriptionSample Input6 4 1 2 2 3 2 4 4 5 5 6 4 5 6 6 3 1 2 4 4 6 6 6 Sample Output5 2 2 5 4 1 6 0 思路:唔,直接暴力求出三个lca判断一下哪个lca是题目所要求的点就好了 1 #include 2 ... 阅读全文
posted @ 2015-09-09 23:09 philippica 阅读(204) 评论(0) 推荐(0) 编辑