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 children_s_dining at 2005-06-24 18:13:17 on Problem 2438
In Reply To:请教大家对这题的解法 Posted by:c0500446123 at 2005-05-29 21:28:09
就是序列...AB...
出现A和B是敌人的情况,就一定可以找到CD,使得C是A的朋友,D是B的朋友,就是形如:...AB...CD...。证明略
这样变为...AC...BD...,就是把链B..C翻转
可以在有限步内停止
 
> 这题成为今天的第二简单题,实在太弱了
> 1.请教大家用什么方法做出来的?(应该都是搜吧?)
> 2.如果把n扩大到1000甚至2000,有更好的方法吗?

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