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 |
这题……我单用Tarjan算法居然可以过本来以为有并查集和LCA。 结果写了这两个是RE的。 最后去掉了这两个优化,该用LCA的地方用1(根)代替了。 没想到居然能AC,还是比较快的(344MS)…… Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator