摘要:
1272:【例9.16】分组背包 http://ybt.ssoier.cn:8088/problem_show.php?pid=1272 #include<bits/stdc++.h> using namespace std; struct qwert{ int w,v; }a[13][31]; i 阅读全文
posted @ 2023-07-22 16:53
臧清宇
阅读(18)
评论(0)
推荐(0)
摘要:
vector 基本操作 创建vector对象,vector<int> vec; 尾部插入数字:vec.push_back(a); 使用下标访问元素,cout<<vec[0]<<endl;记住下标是从0开始的。 使用迭代器访问元素. vector<int>::iterator it; for(it=v 阅读全文
posted @ 2023-07-22 16:06
臧清宇
阅读(25)
评论(0)
推荐(1)
摘要:
1269:【例9.13】庆功会 http://ybt.ssoier.cn:8088/problem_show.php?pid=1269 #include<bits/stdc++.h> using namespace std; int n,m; int w[503],v[503],s[503]; in 阅读全文
posted @ 2023-07-22 11:03
臧清宇
阅读(49)
评论(0)
推荐(0)

浙公网安备 33010602011771号