摘要: n 皇后问题研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。 class Solution { public: //检查是否符合规则 int check(int i,int j,int n,vector<string> & a) { int x,y; for(x= 阅读全文
posted @ 2020-09-27 18:47 lancelee98 阅读(161) 评论(0) 推荐(0) 编辑