摘要:
#include <iostream>#include <algorithm>using namespace std;const int MAX=1010;int f[MAX][MAX];//表示装了前i个背包后的最大价值是多少int v[MAX],w[MAX];int main(){ int n, 阅读全文
posted @ 2020-04-12 23:58
WAsbry
阅读(125)
评论(0)
推荐(0)
摘要:
【模板】关于vector的lower_bound和upper_bound以及vector基本用法 STL原创bbqub 最后发布于2017-11-02 21:53:00 阅读数 660 收藏展开关于lower_bound和upper_bound共同点函数组成: 一个数组元素的地址(或者数组名来表示这 阅读全文
posted @ 2020-04-12 22:21
WAsbry
阅读(299)
评论(0)
推荐(0)
摘要:
lower_bound与upper_bound()用法笔记原创正牌东风 最后发布于2018-07-23 21:10:23 阅读数 965 收藏展开头文件 #include <algorithm> using namespace std; lower_bound与upper_bound()查找一个元素 阅读全文
posted @ 2020-04-12 22:10
WAsbry
阅读(187)
评论(0)
推荐(0)
摘要:
#include <cstdio>#include <iostream>#include <algorithm>using namespace std;int dp[1100];int win[1100], lose[1100], use[1100];int main(){ int n, m; ci 阅读全文
posted @ 2020-04-12 08:46
WAsbry
阅读(219)
评论(0)
推荐(0)
摘要:
完整代码: #include<iostream>#include<cstdio>using namespace std;int m, n; // 数据规模int f[20010];//这个就是状态(和剩余价值有关),表示体积为f[j]的时候最小剩余价值int w[40];//用来装每个背包的体积in 阅读全文
posted @ 2020-04-12 08:20
WAsbry
阅读(130)
评论(0)
推荐(0)

浙公网安备 33010602011771号