上一页 1 ··· 6 7 8 9 10 11 12 下一页
  2015年5月27日
摘要: #include int n,r; //n种自然数 r是个数int rec[100];void output(){ int i; for(i=1;i<=r;i++) printf("%d ",rec[i]); printf("\n");}void To(int s,i... 阅读全文
posted @ 2015-05-27 17:36 Ricochet! 阅读(133) 评论(0) 推荐(0) 编辑
  2015年5月26日
摘要: 1 #include 2 int TheEarthLand[6][6]={0}; 3 int HowToGoX[]={0,1,2,2,1,-1,-2,-2,-1}; 4 int HowToGoY[]={0,-2,-1,1,2,2,1,-1,-2}; 5 int total=0; 6 void o... 阅读全文
posted @ 2015-05-26 16:51 Ricochet! 阅读(397) 评论(0) 推荐(0) 编辑
  2015年5月21日
摘要: http://blog.csdn.net/kingzone_2008/article/details/12837365 阅读全文
posted @ 2015-05-21 17:54 Ricochet! 阅读(115) 评论(0) 推荐(0) 编辑
  2015年5月20日
摘要: 设有A,B,C,D,E五人从事J1,J2,J3,J4,J5五项工作,每人只能从事一项,他们的效益如下。每人选择五项工作中的一项,在各种选择的组合中,找到效益最高的的一种组合输出。这个主要是细节了,没什么难度 1 #include 2 int MansToJobs[6][6]={{0,0,0,0,0,... 阅读全文
posted @ 2015-05-20 18:13 Ricochet! 阅读(515) 评论(0) 推荐(0) 编辑
  2015年5月19日
摘要: 1 #include 2 int board[100][3]={0},totally=0; 3 int x[4]={2,1,-1,-2},y[4]={1,2,2,1}; 4 void o(int k) //这个输出函数需要借助回溯中n的值来完成输出 5 { 6 totally++; 7... 阅读全文
posted @ 2015-05-19 17:36 Ricochet! 阅读(248) 评论(0) 推荐(0) 编辑
  2015年5月18日
摘要: 1 #include 2 int AChessBlockRecorder[10]={0}/*下标层数,内容竖行*/,ThisIsMyPlace[10]={0};/*占领*/ 3 int TheTalentOfTheQueen1[25]={0}; //前一个维度代表主对角线特性,相减同 4 in... 阅读全文
posted @ 2015-05-18 18:14 Ricochet! 阅读(292) 评论(0) 推荐(1) 编辑
  2015年5月16日
摘要: 1 #include 2 int search(int s,int t); 3 void op(int k); 4 int res[1001]={1},n; 5 int main() 6 { 7 //scanf("%d",&n); 8 n=10; 9 search(n,1)... 阅读全文
posted @ 2015-05-16 21:15 Ricochet! 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int resl[1000]={0},used[1000]={0}; 3 int n,r; 4 int tot=0; 5 void output() 6 { 7 tot++; 8 printf(":",tot); 9 int i;10 ... 阅读全文
posted @ 2015-05-16 18:18 Ricochet! 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #define MAX 12 4 int used[21]={0},resl[21]={0},zs[50]={0};//used=已使用 resl=结果 zs=质数 5 int total=0; 6 void output() 7 { 8 ... 阅读全文
posted @ 2015-05-16 17:44 Ricochet! 阅读(147) 评论(0) 推荐(0) 编辑
  2015年5月13日
摘要: 1 #include 2 #define M 10 3 int w[M]={1,3,5,7,9,11,13,15,17,19}; 4 int backpack(int n,int s) //n代表容量,s代表物品个数 5 { 6 if(n==0) return 1; //如果... 阅读全文
posted @ 2015-05-13 17:49 Ricochet! 阅读(240) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页