上一页 1 2 3 4 5 6 7 8 9 10 ··· 31 下一页
摘要: #include int main( ){ int a,b,c,s ; s=0 ;for(a=1; aint main( ){ int a,b,c,s ; s=0 ;for(a=1; a<=9; a++)for(b=0; b<=9; b++)for(c=0; c<=9... 阅读全文
posted @ 2014-08-12 21:33 2014acm 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include int main( ){ int a,b,c,i;for(i=100;iint main( ){ int a,b,c,he,i;for(i=100;iint main( ){ int a,b,c,i,s ; s=0 ;for(i=100;iint m... 阅读全文
posted @ 2014-08-12 21:30 2014acm 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #include int f(int n){ if (n==1) return 1; else return f(n-1)+n; }int main(void){ printf("%d\n",f(100));} 阅读全文
posted @ 2014-08-12 21:23 2014acm 阅读(136) 评论(0) 推荐(0) 编辑
摘要: hnldyhy// poj 1651 矩阵连乘 DP #include #include using namespace std;int dp[103][103],s[103];int main(){ int n,i,j,k,min; cin>>n; for(i=1;i>s[i]... 阅读全文
posted @ 2014-08-12 21:09 2014acm 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include int dp[12888];int w[3408],d[3408];int max(int x,int y) { return x>y?x:y; }int main(){ int n,m,i,j; while(scanf("%d%d",&n,&m)!=EOF... 阅读全文
posted @ 2014-08-12 21:02 2014acm 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #include#define max(a,b) (a)>(b)?(a):(b)int dp[12888];int w[3408],d[3408];int main(){ int n,m,i,j; while(scanf("%d%d",&n,&m)!=EOF) { for(i=... 阅读全文
posted @ 2014-08-12 21:00 2014acm 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #includeint main(){int a[10][10];int i,j; for(i=0;i#define N 10int main(){int a[N][N], i,j; for(i=0;i#define N 50void YangHui(int a[][N],int n){ int i... 阅读全文
posted @ 2014-08-12 20:57 2014acm 阅读(165) 评论(0) 推荐(0) 编辑
摘要: // 动态规划求最少钱币枚数#include int a[20],c[20][3000],k,n;int min(int x,int y){ return x>y?y:x; }int main(){ int i,j; scanf("%d",&k); for (i=0; i=... 阅读全文
posted @ 2014-08-12 20:44 2014acm 阅读(291) 评论(0) 推荐(0) 编辑
摘要: #includeint max(int x,int y){ int z; if (x>y) z=x; else z=y; return z;}int max(int a,int b){ return a > b ? a : b;}int main(){ int t... 阅读全文
posted @ 2014-08-12 20:26 2014acm 阅读(203) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std;int dp[1005], w[105],v[105],T,M;int max(int x,int y) { return x>y?x:y; }void f( ){ int i,j; for (i... 阅读全文
posted @ 2014-08-12 20:14 2014acm 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 31 下一页