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:请教如何用差分约束来做In Reply To:Re:请教如何用差分约束来做 Posted by:frankhuhu at 2007-09-03 22:28:07 > 设S(i)为 1..i 中在最终序列中的的整数个数。 > > S(b) - S(a) >= c > > 0 <= S(i) - S(i-1) <= 1 > ---> > S(i) - S(i-1) >= 0 > S(i-1) - S(i) >= -1 > > 得到了约束条件。bellman-ford搞掉。 0 <= S(i) - S(i-1) <= 1 啥意思? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator