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 yygy at 2014-07-27 01:02:00 on Problem 3240
In Reply To:Re:再把最后两行前几列移好,最后三列就对应八数码问题的最后两列。应该是这样吧。那应该算简单题啊。怎么这么少人做对。题目没说输出最少步数吧。 Posted by:Los_Angelos_Laycurse at 2014-07-27 00:33:25
> 用神马方法把最后两行的前几列移好?  如果直接构造的话,比如先把第一列移好以后
> 
> 不能保证后面的有解(不移动前面一列的前提下),因为逆序数的奇偶性可能改变

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