06 2023 档案

摘要:#include<iostream> using namespace std; int arr[10][10]; //用于存储棋盘以及之后的皇后摆放位置 int ans; //存储最后的答案 bool judge(int x, int y) //用于判断这个地方能否放置皇后 { int i, j; 阅读全文
posted @ 2023-06-04 12:41 刘海烽 阅读(7) 评论(0) 推荐(0) 编辑
摘要:#include<cstdio> using namespace std; bool d[100]={0},b[100]={0},c[100]={0}; int sum=0,a[100]; int search(int); int print(); int main(){ search(1); // 阅读全文
posted @ 2023-06-01 18:56 刘海烽 阅读(10) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示