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

To p tips, another method

Posted by Gavin_512 at 2006-09-26 10:23:18 on Problem 2983
In 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:
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