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:有没有好的办法啊,利用9个MOVE的规律啊

Posted by Lucifer at 2005-09-29 00:13:25 on Problem 1166
In Reply To:有没有好的办法啊,利用9个MOVE的规律啊 Posted by:goldenlock at 2004-10-11 17:46:47
 if ((c[1]+list[1]+list[2]+list[4])%4!=0) return false;
        if ((c[2]+list[1]+list[2]+list[3]+list[5])%4!=0) return false;
        if ((c[3]+list[2]+list[3]+list[6])%4!=0) return false;
        if ((c[4]+list[1]+list[4]+list[5]+list[7])%4!=0) return false;
        if ((c[5]+list[1]+list[3]+list[5]+list[7]+list[9])%4!=0) return false;
        if ((c[6]+list[3]+list[5]+list[6]+list[9])%4!=0) return false;
        if ((c[7]+list[4]+list[7]+list[8])%4!=0) return false;
        if ((c[8]+list[5]+list[7]+list[8]+list[9])%4!=0) return false;
        if ((c[9]+list[6]+list[8]+list[9])%4!=0) return false;
因此搜到list[1],list[2],list[3]的时候可以求出list[4]-list[9],此时还有两个检验没用.用那两个检验就好.

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