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:请教如何用差分约束来做 Posted by:gffly at 2007-03-09 15:35:46 设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搞掉。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator