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 64162451 at 2011-08-27 20:03:03 on Problem 1466
In Reply To:大牛求解 Posted by:Exky at 2011-08-16 07:38:26
> 3
> 0: (2) 1 2
> 1: (2) 0 2
> 2: (2) 0 1
> --------------
> 答案是 1
> ??
> 但我的AC程序说是2.
> 还是说不许有环

不是不许有环
比如这样的环就是可以的
4
0: (2) 1 3
1: (2) 0 2
2: (2) 1 3
3: (2) 0 2
你刚才那种环是不会出现的,因为本题还考虑到男女,你举的那个例子没办法判定同行和异性关系。
详细可以看一下
http://blog.csdn.net/wuyanyi/article/details/6725229
希望对你有帮助。

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