摘要:
题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=1002分析:类八皇后问题,简单DFS。 1 #include <cstdio> 2 #include <cstring> 3 #include <cstdlib> 4 5 char map[8][8]; 6 int n; 7 int max; 8 9 bool check( int x, int y )10 {11 for ( int i = x - 1; i > 0; i-- ) if ( map[i][y] == & 阅读全文
posted @ 2012-08-08 14:18
冰鸮
阅读(207)
评论(0)
推荐(0)

浙公网安备 33010602011771号