
01背包
GUESSERR
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
P1049 装箱问题(01背包模板)
P1049 装箱问题 01背包Code: #include<iostream> #define ll long long using namespace std; int main(){ ll n,m,weight[30],dp[20010]={0};cin>>m>>n; for(ll i=0;i<n;i++)cin>>weight[i]; for(ll i=0;i<n;i++) for(ll j=m;j&原创 2020-10-14 18:41:50 · 179 阅读 · 0 评论 -
Charm Bracelet POJ - 3624
Bessie has gone to the mall’s jewelry store and spies a charm bracelet. Of course, she’d like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402) available charms. Each charm i in the ...原创 2019-05-03 12:46:17 · 214 阅读 · 0 评论 -
Bone Collector HDU - 2602
Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave … The bone collector ...原创 2019-05-03 12:48:17 · 199 阅读 · 0 评论 -
Robberies HDU - 2955
The aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to work in the lucrative...原创 2019-05-03 12:49:53 · 289 阅读 · 0 评论