2011年10月29日
摘要: 1 #include <iostream> 2 using namespace std; 3 int x,y,ROW,COL,path[30]; 4 bool vis[26][26],flag; 5 int move[8][2]={{-1,-2},{1,-2},{-2,-1},{2,-1},{-2,1},{2,1},{-1,2},{1,2}}; 6 7 #define SIZE ROW*COL 8 9 void dfs(int r,int c,int dep){10 path[dep]=r*COL+c;11 vis[r][c]=true;12 if(dep... 阅读全文
posted @ 2011-10-29 20:35 Seiyagoo 阅读(265) 评论(0) 推荐(0) 编辑