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 |
感觉数据比较弱啊,题目应该没说图是联通的吧,我没考虑图不联通的情况就AC了如果图不连通,就应该新建一个点并且连接至所有其它顶点,然后再求有没有负权回路 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator