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 ACM_henry at 2008-10-10 14:11:40 on Problem 2893
对于n*m的矩阵(n行m列),两个格局可以互相转换当且仅当,将空格用0代替以后:
a. 若两格局中0的距离为偶数,两者的逆序数的奇偶性相同。
b. 若两格局中0的距离为奇数,两者的逆序数的奇偶性相异。

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