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 daxiong at 2009-04-02 09:51:33 on Problem 2188
In Reply To:谁解释下样例…… Posted by:JiangLY at 2006-07-15 09:24:16
就是说线也是有编号的,sample input给出的是每个槽的上头和下头分别连的线的编号。

答案是最少相邻移动次数。
比如分别交换:23上,23下,14上,14下就满足要求了。

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