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

哦! 想到了, 起始状态到目标状态应该是一个偶置换, 因为每一步移动是一个偶置换! 所以只需要判断起始->目标这个置换的奇偶性就可以了,不用求逆序数 :> O(N)即可!

Posted by rruucc at 2003-11-13 19:48:37 on Problem 1507
In Reply To:这个题目怎么做 Posted by:hawk at 2003-11-13 16:34:03
> 哪有介绍?

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