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 YA_ME_DE at 2009-05-14 12:06:22 on Problem 2488
主要注意要字典序列,其实也很好办,注意一下扩展的顺序就行了。
国际象棋棋盘是从左向右A->B->...类推
从上到下1->2->...类推
所以扩展的时候,如果要按字典序列就应该
int dir[2][8]={-1,1,-2,2,-2,2,-1,1,
               -2,-2,-1,-1,1,1,2,2};

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