摘要: 经典的n皇后问题。 不过,这份代码是错误的,在回溯的时候出了问题。 #include <iostream> using namespace std; const int maxn=20; int n,sum=0; bool y[maxn]={false},d[maxn][maxn]={false}; 阅读全文
posted @ 2022-04-03 21:02 zokji 阅读(17) 评论(0) 推荐(0)