-
SAMP-urban-open-source
SAMP 开源都市 非常完美 值得下载 (SAMP perfect city worth downloading open source)
- 2014-08-29 20:35:12下载
- 积分:1
-
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
-
Szzhhixiange
几个指向性的程序源码,包含线阵,,面阵与带加权的阵型
(Several directional program source code contains a linear array, planar array with weighted formation)
- 2012-08-23 20:29:27下载
- 积分:1
-
See5-demo
一个对应于C5.0的DEMO程序(a C5.0 corresponding to the procedures DEMO)
- 2004-10-18 10:20:42下载
- 积分:1
-
DiskGenius
基础学习,可以实现编码的基础学习,认真学习还是可以学很好的(Based learning, can achieve coding based learning, serious learning can still learn a good)
- 2015-03-28 10:51:32下载
- 积分:1
-
2008100
matlab的小波变换源代码 可以用来做图像分析(matlab wavelet transform source code can be used to make image analysis)
- 2008-05-23 14:50:06下载
- 积分:1
-
hx711
Arduino hx711库文件,在编写程序省去很大力气,很好用的头文件,大力推荐(Arduino hx711 library files, eliminating the need to write programs in a lot of effort, a good use of header files, strongly recommended)
- 2014-11-09 19:32:57下载
- 积分:1
-
Proficient-in-Matlab-and-C-CPP-V2
matlab与VC++混合调用的经典教程(Classic tutorial matlab mixed with VC++ call)
- 2015-03-02 10:19:14下载
- 积分:1
-
dianliu
散射电流仿真、可视化、c++和matlab(Scattering current simulation、visualization、c++and matlab
)
- 2012-03-30 10:56:36下载
- 积分:1
-
dbscan
数据挖掘,聚类分析,DBSCAN C++的实现,(Data mining, clustering analysis, DBSCAN C++ Realization)
- 2007-12-26 14:53:12下载
- 积分:1