| ||||||||||
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 |
To p tips, another methodIn Reply To:How to handle P ? Posted by:pl2000t at 2006-09-04 17:31:03 To p tips , I think a simple method is to add an edge to constraints graph. For example, d[2]-d[1] = 1 is equal to d[2]-d[1]>=1 && d[1]-d[2]>= -1. But this method is not best, using disjoint-set is better solution and harder than this . Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator