上一页 1 2 3 4 5 6 7 8 9 ··· 26 下一页
摘要: BFS + 贪心 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; string start = "12345678"; map<string,int> 阅读全文
posted @ 2022-08-05 17:30 wKingYu 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 全集 - 集合的补集 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e5 + 10; const LL mod = 100003; LL n, m; LL qmi(LL 阅读全文
posted @ 2022-08-03 23:30 wKingYu 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 构造 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; int n; vector<int> primes; bool st[N]; void get_p 阅读全文
posted @ 2022-08-03 23:05 wKingYu 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e6 + 10; int n; vector<int> primes; bool st[N]; void get_prim 阅读全文
posted @ 2022-08-03 22:44 wKingYu 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 多源 BFS 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1000 + 10; #define x first #define y second int n, m; c 阅读全文
posted @ 2022-08-03 22:17 wKingYu 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 带条件的 BFS 最短路 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 2e5 + 10; int n, m; int d[N]; int bfs(int x) { qu 阅读全文
posted @ 2022-08-02 19:24 wKingYu 阅读(4) 评论(0) 推荐(0) 编辑
摘要: BFS 最短路 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1000 + 10; #define x first #define y second int n, m; 阅读全文
posted @ 2022-08-02 18:38 wKingYu 阅读(22) 评论(0) 推荐(0) 编辑
摘要: BFS 最短路 + 记录方案 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1000 + 10; #define x first #define y second int 阅读全文
posted @ 2022-08-02 18:24 wKingYu 阅读(14) 评论(0) 推荐(0) 编辑
摘要: Flood Fill 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1000 + 10; #define x first #define y second int n; 阅读全文
posted @ 2022-08-02 17:48 wKingYu 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 需要处理输入的 Flood Fill 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1000 + 10; #define x first #define y second 阅读全文
posted @ 2022-08-02 17:22 wKingYu 阅读(19) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 26 下一页