上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 37 下一页
摘要: #include#include#includeusing namespace std;int dp[2000000],t;void zeroonepack(int cost,int weight){ for(int i=t;i>=cost;i--) { d... 阅读全文
posted @ 2015-07-16 08:59 xryz 阅读(84) 评论(0) 推荐(0) 编辑
摘要: #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) 编辑
摘要: #includeint main(){ long long int x; while(~scanf("%lld",&x)) { if(x%2==0) printf("0 0\n"); else printf("2 %lld\n",x+2)... 阅读全文
posted @ 2015-07-14 16:11 xryz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int dp[35000];int main(){ int i,j,n; memset(dp,0,sizeof(dp)); dp[0]=1; for(i=1;i<=3;i+... 阅读全文
posted @ 2015-07-14 12:23 xryz 阅读(86) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int _,n,dp[10000+5],i,j,a[5]; a[1]=150; a[2]=200; a[3]=350; memset(dp,0... 阅读全文
posted @ 2015-07-14 12:21 xryz 阅读(110) 评论(0) 推荐(0) 编辑
摘要: #include#include#includeusing namespace std;int main(){ int n,m,i,j,w[10000+5]; double k[10000+5],dp[10000+5]; while(~scanf("%d%d",&n... 阅读全文
posted @ 2015-07-14 12:19 xryz 阅读(89) 评论(0) 推荐(0) 编辑
摘要: /* ***********************************************Author :xryzEmail :xiang578@foxmail.comCreated Time :7-11 11:59:34File Name ... 阅读全文
posted @ 2015-07-11 20:38 xryz 阅读(116) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;const int N=10... 阅读全文
posted @ 2015-07-11 20:34 xryz 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 37 下一页