摘要:
递推 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 100 + 10; int n, m; int a[N][N], g[N][N]; int dx[] = {0, -1 阅读全文
posted @ 2022-08-10 14:06
wKingYu
阅读(45)
评论(0)
推荐(0)
摘要:
三维迷宫 BFS + 结构体存储 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 100 + 10; const int INF = 0x3f3f3f3f; int L, 阅读全文
posted @ 2022-08-10 13:35
wKingYu
阅读(43)
评论(0)
推荐(0)
摘要:
八皇后问题的变形 $DFS$ 按行枚举 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 10 + 10; int n, m; char g[N][N]; bool col[ 阅读全文
posted @ 2022-08-10 13:09
wKingYu
阅读(31)
评论(0)
推荐(0)

浙公网安备 33010602011771号