摘要: 典型的二位费用背包问题,主要是边界的考虑#include <iostream> #include <cstdio> #include <cstring> #define mem(a,b) memset(a,b,sizeof(a)) #define max(a,b) ((a)>(b)?(a):(b)) using namespace std; const int inf=0x3f3f3f3f; int f[100+10][1000+10]; int w[100+10],v[100+10]; int main() { int t; cin>>t 阅读全文
posted @ 2013-03-26 15:02 LJ_COME!!!!! 阅读(126) 评论(0) 推荐(0)