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 |
并查集也可以啊!实际上,这题由于双向对称的缘故,连的都是无向边,经过缩点后即形成多个点,点与点之间若有边,则两点又被合并为一个点。用并查集也能搞缩点。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator