摘要: 一、DFS实现N皇后 1 #include<bits/stdc++.h> 2 using namespace std; 3 int ans[10];//用于存放答案 4 int tot;//方案数 5 const int n=8;//N皇后问题 6 bool check(int c, int r){ 阅读全文
posted @ 2020-09-17 23:32 TFLSNOI 阅读(225) 评论(0) 推荐(0) 编辑