01背包:(每样东西只有一件)
for i=1..N
for i=1..N
for i = 0...k
for j = 1 ... N
for g = V...0
f[v] = max{f[v],f[v-p[i]]+w[i]]}
01背包:(每样东西只有一件)
for i=1..N
for i=1..N
for i = 0...k
for j = 1 ... N
for g = V...0
f[v] = max{f[v],f[v-p[i]]+w[i]]}