Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

一组数据,题目数据没考虑这里,过不了也能AC

Posted by QHearting at 2015-11-22 11:13:32 on Problem 3169 and last updated at 2015-11-22 11:16:46
4 2 1
1 2 2
3 4 4
3 4 5
-1

差分约束系统判断可行解方法是,从额外点0向每一个顶点连一条权值为0的边,然后以0为源点判断是否存在负环...(不等式是<=时判断负环,不等式是>=时判断正环..)
个人理解,有错误请指正...

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator