摘要: 全集 - 集合的补集 点击查看代码 #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) 编辑