Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
做不出来也所几句原来以为这道题是先建立领接表从底往上回归到1,同时建立并查集的father数组,用并查集维护整个树形,自己这样觉得已经很快,实现也有点难度,最后还是超时。线段树~~~无法想象的算法~~ Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator