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 |
绝对值输入时将路径长度前加一个负号变成负数,按一般求最小生成树的做法做出来之后,再输出绝对值就OK了;用F数组记录节点是否在最小生成树上,若有一个点不是,就输出-1退出,我这样AC了 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator