![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
Summer8918
这个作者很懒,什么都没留下…
展开
-
n皇后问题
#include "stdio.h" #include <math.h> const int maxn = 15; bool table[maxn] = { false }; int n,cnt=0; int P[maxn]; void generateP(int index) { if (index == n + 1) { bool flag = true; ...原创 2018-08-11 11:16:37 · 85 阅读 · 0 评论 -
n皇后递归回溯
#include "stdio.h" #include <math.h> const int maxn = 15; bool table[maxn] = { false }; int n, cnt = 0; int P[maxn]; void generateP(int index) { if (index == n + 1) { cnt++; ...原创 2018-08-11 11:17:35 · 145 阅读 · 0 评论