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 siyu at 2008-10-31 11:04:19 on Problem 2893 and last updated at 2008-10-31 12:02:32
http://www.cut-the-knot.org/do_you_know/graphs2.shtml
/*
对于n*m的矩阵(n行m列),两个格局可以互相转换当且仅当,将空格用0代替以后:
a. 若两格局中0的距离为偶数,两者的逆序数的奇偶性相同。
b. 若两格局中0的距离为奇数,两者的逆序数的奇偶性相异。
用来求逆序数的数字序列可以按矩阵先从左到右,然后从上至下得到。
*/

用了一直wa,不知道这个理论是否有问题?

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