博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hdu1114Piggy-Bank(完全背包)
阅读量:4311 次
发布时间:2019-06-06

本文共 488 字,大约阅读时间需要 1 分钟。

题目链接:

 

1 #include
2 #include
3 #include
4 using namespace std; 5 const int maxn=10010; 6 const int inf=0x3f3f3f3f; 7 int dp[maxn]; 8 int sw,sv; 9 int n;10 struct node11 {12 int w,v;13 }p[maxn];14 15 int main()16 {17 int t;18 scanf("%d",&t);19 while(t--)20 {21 scanf("%d%d",&sw,&sv);22 sv-=sw;23 scanf("%d",&n);24 for(int i=0;i

 

转载于:https://www.cnblogs.com/yijiull/p/6602925.html

你可能感兴趣的文章
vue.js路由vue-router
查看>>
小程序丨页面去掉转发按钮
查看>>
判断浏览器类型和版本
查看>>
kafka入门介绍
查看>>
[POI2011]SEJ-Strongbox
查看>>
5.学习资源
查看>>
IOS错误总结
查看>>
Win10系列:C#应用控件进阶4
查看>>
std::remove_if
查看>>
前端学HTTP之报文首部
查看>>
设置IIS 兼容32位DLL
查看>>
Python输出格式全总结
查看>>
Python数据结构 将列表作为栈和队列使用
查看>>
UVA 10815 Andy's First Dictionary【set】
查看>>
【CUDA 基础】3.2 理解线程束执行的本质(Part I)
查看>>
xshell配色
查看>>
php缓存
查看>>
【POJ2778】AC自动机+矩阵乘法
查看>>
自定义粘贴板-陈鹏
查看>>
Spark ML参考博客
查看>>