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

Re:题目算法

Posted by lawyer at 2017-08-21 13:26:26 on Problem 1417
In Reply To:题目算法 Posted by:407811696 at 2011-08-19 14:13:10
> 并查集处理关系,然后开始dp,看看每个关系组都取一个,可不可以得到一个p1的数量,如果组合方法超过1,表示不确定,如果等于1,就输出这些组合,但是题目存在无法组合到p1的情况,所以组合数等于0也输出no

还有p1 = p2输出no

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