摘要: #include#include#includeusing namespace std;int n,m,p[100+5],h[100+5],c[100+5],dp[100+5];void zeroonepack(int cost,int weight){ for(int i=n... 阅读全文
posted @ 2015-07-15 16:53 xryz 阅读(119) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int i,j,p,n,m,k,s,a[120],b[120],dp[120][120]; while(~scanf("%d%d%d%d",&n,&m,&k,&... 阅读全文
posted @ 2015-07-15 11:15 xryz 阅读(177) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int d[1024][1024];int main(){ int _,i,j,k,n,X,Y,x[10+5],y[10+5],c[10+5]; scanf("%d",&_); ... 阅读全文
posted @ 2015-07-15 09:23 xryz 阅读(87) 评论(0) 推荐(0) 编辑