AND20211201
AND20211201
全部文章
题解
dfs(1)
总结(28)
数据结构(1)
未归档(1)
洛谷(1)
归档
标签
去牛客网
登录
/
注册
AND20211201的博客
全部文章
/ 题解
(共113篇)
多重背包问题 I
">using namespace std; const int N = 110; int v[N], w[N], s[N]; int f[N][N]; int main() { int n, m; cin >> n >> m; for(int i =...
2022-04-04
0
208
组队井字游戏
#include<iostream> #include<vector> #include<algorithm> #include<cstring> #define x first #define y second...
2022-04-02
1
291
传送
#include<iostream> using namespace std; int main() { int a, b, c, d; &nbs...
2022-04-01
1
212
Get an Even String
#include<iostream> #include<string> #include<cstdio> #include<cstring> #include<cmath> #include<queue> #include<...
2022-04-01
3
396
快速幂
#include<iostream> using namespace std; typedef long long LL; int qmi(int a, int b, int p...
2022-03-31
1
272
阻挡广告牌 II
">using namespace std; #define x first #define y second typedef pair<int, int> PII; const int N = 1e6 + 10; PII x ={1000, -1000} , y = {-1000, 1...
2022-03-31
1
269
阻挡广告牌
">using namespace std; #define x first #define y second typedef pair<int, int> PII; const int N = 1e6 + 10; PII x ={1000, -1000} , y = {-1000, 1...
2022-03-30
1
287
砝码称重
">using namespace std; const int N = 1e5 + 10; int w[N]; bool f[110][N * 2];//f[i][j]表示第i个物品,重量为j int n, m; int main() { int n; cin >>n;...
2022-03-30
1
279
网络分析(已解决)
来自专栏
">using namespace std; const int N = 1e4 + 10; int p[N], s[N]; int find(int x) // 并查集 { if(p[x]==x||p[p[x]] == p[x])return p[x];//当x的父节点为根节点或者x本身...
2022-03-29
1
297
混合牛奶
">using namespace std; int main() { int a[3], b[3]; for(int i = 0; i < 3; i ++) { cin >> a[i] >> b[i]; } fo...
2022-03-29
0
248
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页