Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
第一个深搜回溯(是叫这个名吧- -}}}),纪念下主要注意要字典序列,其实也很好办,注意一下扩展的顺序就行了。 国际象棋棋盘是从左向右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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator