本月博客排行
年度博客排行
-
第1名
宏天软件 -
第2名
青否云后端云 -
第3名
龙儿筝 - gashero
- wallimn
- vipbooks
- wy_19921005
- benladeng5225
- fantaxy025025
- e_e
- zysnba
- ssydxa219
- sam123456gz
- javashop
- arpenker
- tanling8334
- kaizi1992
- xpenxpen
- xiangjie88
- wiseboyloves
- ranbuijj
- ganxueyun
- sichunli_030
- xyuma
- wangchen.ily
- lemonhandsome
- jh108020
- zxq_2017
- jbosscn
- Xeden
- luxurioust
- zhanjia
- lzyfn123
- forestqqqq
- ajinn
- nychen2000
- wjianwei666
- daizj
- hanbaohong
- 喧嚣求静
- johnsmith9th
- silverend
- mwhgJava
- kingwell.leng
- lchb139128
- kristy_yy
- lich0079
- jveqi
- java-007
- sunj
最新文章列表
hdu 3732 Ahui Writes Word 多重背包 小心超时
Ahui Writes Word
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1052 Accepted Submission(s): 399
Problem Description
We all kno ...
hdu 3535 涵盖了分组背包的各种情况 非常好的背包题目
I love sneakers!
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1895 Accepted Submission(s): 764
Problem Description
After ...
hdu 2639Bone Collector II 背包的第K优解问题
Problem Description
The title of this problem is familiar,isn't it?yeah,if you had took part in the "Rookie Cup" competition,you must have seem this title.If you haven't s ...
java实现简单背包问题
//n为物品总类,v为总体积,c是各物品的体积,w是各物品的价值,f表示价值
public static int pack(int n,int v,int c[],int w[],int f[]){
for(int k=0;k<n;k++){
for(int vol=v;vol>=c[k];vol--){
f[vol]=max(f[vol],f[vol-c[k]]+w ...
杭电 hdc 2159 FATE 二维背包
此题是二维的背包问题,不会的请先看《背包九讲》(虽然我也没看明白,但还是值得一看),这里再说一句,学算法最好是拿例题来实践,而实践最好是要有大量测试数据,
能过测试数据能够很明确地找出自己的错误来,并且能使人对算法的处理过程有个很明朗的了解。希望各大OJ网站能够高抬贵手,像USCAOG 一样将后台测试数据展现出来,帮助更多在错误中死去活来的 acmer 们走出迷途!
/* THE PROGR ...
杭电 hdu 3496 Watch The Movie 二维背包
这题我也做得很糊涂,主要是没有太多测试数据,哪里错了,怎么错了都不清楚,只能是自己抽象地想像一下它的原理啊什么的,参观一下别人的代码,然后摸着那种若有若无的原理慢慢走……好想有测试数据啊!!!
/* THE PROGRAM IS MADE BY PYY */
/*--------------------------------------------------------------- ...