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 |
为什么执行一次spfa也会TLE???我的想法是增加一个顶点,并增加该顶点到原图中入度为0的点的边权值为相应的点的权值,然后用spfa求出增加的顶点到出度为0的各点的最长路,但为什么会超时,哪位大神能指导一下?谢谢。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator