摘要:
经典的01背包问题,如果把限制条件改为:重量#include#define INF 10000000using namespace std;int c[105],v[105];int dp[10005]; //dp[i],表示在价值i下的最小重量int main(){ ... 阅读全文
posted @ 2014-05-31 12:29
frankM
阅读(621)
评论(0)
推荐(0)
|
frankM
天下武功,唯快不破。
|
|
|