-
0
说明: 给定n种物品和一个背包,物品i的重量是Wi,价值是vi,被包容量是C,应该如何选择装入被包的物品,使得装入背包中物品的总价值最大?对于每种物品i,只有两种选择,装入或者不装入.
输入:第一行两个正整数n(物品数)和C(容量)
第二行n个正整数n,表示物品价值
第三行n个正整数n,表示物品重量
输出:第一行表示总价值
第二行n个数(0/1),0表示物品不装入,1表示装入
例如,
输入:
5 10
6 3 5 4 6
2 2 6 5 4
输出
15
1 1 0 0 1
(Species of a given n items and a backpack, the weight of item i is Wi, the value of vi, was packet capacity is C, should be how to choose a package of items to be loaded, the backpack load in the largest total value of goods? For each item i, there are only two options, loaded or not loaded. Input: the first line of the two positive integer n (the number of items) and C (capacity) of the second line of n positive integer n, that the value of the third line of n positive integer n, that the weight of output: the total value of the first line of the second line, said n number of (0/1), 0 that the items do not load, that load 1 for example, enter: 5,106,354,622 6 5 4 output 15 1 1 0 0 1)
- 2009-07-01 23:07:01下载
- 积分:1
-
code
毕业论文参考资料,从期刊网上下载的,如果有需要共大家参考(Thesis reference materials downloaded from the journal, if you need a total of reference)
- 2011-05-28 17:05:41下载
- 积分:1
-
matlab_files
programer test is peogramming
- 2012-02-03 19:20:04下载
- 积分:1
-
MATLAB-Guide
精通Matlab---综合辅导
各种Matlab操作(Proficient in Matlab--- Comprehensive Counseling Matlab operation)
- 2013-04-07 23:35:03下载
- 积分:1
-
m-sequence
本文给出了m序列多项相关性的概念,还研究了生成多项式计数的问题(In this paper, the concept of multiple correlation m series, also studied the problem of generation polynomial count)
- 2012-04-19 19:47:31下载
- 积分:1
-
MATLAB
大时代奥维德单位啊打完爱的阿斯顿我饿人大的(dasdasdaweqdasd)
- 2009-03-06 18:13:14下载
- 积分:1
-
myDaoju
vb与matlab混合编程的例子,COM+DLL,非常详细(vb and matlab examples of mixed programming, COM+ DLL, a very detailed)
- 2009-05-08 17:09:04下载
- 积分:1
-
Morl_RBF_0822A
MATLAB做的不错的人脸识别的程序,希望大家能能受用,-color ,经测试可直接使用。
(Face recognition program MATLAB to do good, and I hope that we can be able to benefit from-color has been tested and can be used directly.)
- 2012-09-30 18:09:16下载
- 积分:1
-
Tdcoorconvert
根据读取到的已知控制点的坐标,计算在该区域内的平面转换五参数,该五参数不同于当前使用较多的四参数(According to the known control point to read the coordinates to calculate the plane in the region converted five parameters, the five parameters to use more different from the current four-parameter)
- 2010-09-24 21:50:29下载
- 积分:1
-
[codes]NIN
是2014年的cnn上的一个变化的网络,将卷积层与池化层之间的线性关系变成1×1的卷积层的非线性关系,名为network in network(Is a change in the 2014 cnn on the network layer of the linear convolution and pooled into a non-linear relationship between the layers 11, convolution layer, called the network in network)
- 2014-12-04 09:39:35下载
- 积分:1