上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int MAXN=1e5+10; const int MAXM=1e6+10; const int INF=2147483647; 阅读全文
posted @ 2026-01-18 17:34 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; //起始点和终点 string start_str, end_str; string rule_from[10], rule_to[10]; // 对应的变换规则 int rule_count = 阅读全文
posted @ 2026-01-15 23:57 AnoSky 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; string start_s; string goal="123804765"; int dx[4]={-1,0,0,1}; int dy[4]={0,-1,1,0}; void bfs() { 阅读全文
posted @ 2026-01-15 21:29 AnoSky 阅读(5) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int N=510; char g[N][N]; int dist[N][N]; int n,m; int dx[4]={-1,- 阅读全文
posted @ 2026-01-15 18:40 AnoSky 阅读(2) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.> using namespace std; //使用long long 防溢出 typedef long long ll; struct Point { ll x, y, z; }; int n; // 空洞数量 ll h, r; // 高度 阅读全文
posted @ 2026-01-14 00:15 AnoSky 阅读(8) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <iostream> #include <queue> #include <cstring> using namespace std; const int MAXN = 55; //存储原始地图 int raw_map[MAXN][MAXN]; //存储机器人能否站在 阅读全文
posted @ 2026-01-13 17:22 AnoSky 阅读(3) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int MAXN=35; int g[MAXN][MAXN]; int n; int dx[4]={-1,0,0,1}; int 阅读全文
posted @ 2026-01-11 00:17 AnoSky 阅读(14) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; const int MAXN = 400; const int INF = 1e9; //代表绝对安全 //存储被流星砸中的最早时间 int grid[MAXN][MAXN]; //既存储步数又起 阅读全文
posted @ 2026-01-11 00:14 AnoSky 阅读(6) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int> PII; const int MAXN=1005; int n,m; char g[MAXN][MAXN]; int ans[MAXN][MAXN]; 阅读全文
posted @ 2026-01-10 23:21 AnoSky 阅读(32) 评论(0) 推荐(0)
摘要: 点击查看代码 #include <iostream> #include <queue> #include <vector> using namespace std; const int MAXN = 105; int N, M; char grid[MAXN][MAXN]; // 存地图 bool 阅读全文
posted @ 2026-01-10 16:11 AnoSky 阅读(47) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页