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 |
Re:第一道差分-用SPFA的时候注意,判负环cnt[v]>N而不是>=...就这样WA了3次...In Reply To:第一道差分-用SPFA的时候注意,判负环cnt[v]>N而不是>=...就这样WA了3次... Posted by:masque at 2009-07-17 12:18:27 > RT.... > http://www.cnblogs.com/pandy/archive/2009/05/02/1447643.html 我更悲剧 按照教程上写的 已经在队列中的元素不予入队 然后判断负环, >n 是错的 改成 >n+1 就对了???!!!... Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator