摘要: 1 #include 2 using namespace std; 3 #define SIZE 6 4 char data[SIZE]={'A','B','C','D','E','F'}; 5 char data1[SIZE]; 6 int maxnum=0; 7 bool safe(char c,int n); 8 void pailie(int num); 9 void... 阅读全文
posted @ 2017-01-22 11:13 jintg 阅读(147) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define SIZE 9 4 5 char data[SIZE+1]={'0'}; 6 char pre[SIZE]={'A','B','D','H','I','E','C','F','G'}; 7 char mid[SIZE]={'H','D','I','B','E','A 阅读全文
posted @ 2017-01-22 11:11 jintg 阅读(155) 评论(0) 推荐(0)
摘要: 1 #include 2 using namespace std; 3 #define SIZE 12 4 int data[SIZE]; 5 int data1[SIZE]; 6 int n; 7 int minstep; 8 void xipai(int m); 9 bool shun(); 10 void dfs(int step); 11 int main() 12 ... 阅读全文
posted @ 2017-01-19 08:17 jintg 阅读(151) 评论(0) 推荐(0)