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

这题直接模拟就行啦

Posted by 644197852 at 2015-02-02 13:33:10 on Problem 1486
这个题目直接模拟就行了,本来是冲着二分匹配才做这个题目的,看完题目后感觉直接模拟就行了,结果果真就模拟过了,思路比较好想,是这样,我们可以一点一点的拿出确定的匹配,每次找到出度或者入度为1的(也就是框上只有一个点,或者点只在一个框上的),把这样的点和框一起删除,在继续找,一直到找不出来为止就行了,至于怎么实现,自己想怎么写就怎么写吧,我是存了两个图,一个正一个反,还有两个度数,然后就是.....大体就这样.

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