会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Azoimide Ricochet
一些代码学习心得与翻译作品
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
下一页
2015年5月12日
Ka的递归编程练习 Part5|数的计数(Noip2001)
摘要: 1 #include 2 int sp(int n) 3 { 4 if(n==1) return 1; 5 int s=0,i,e=n/2; 6 for(i=1;i<=e;i++) 7 s+=sp(i); 8 return s+e-1; 9 }10 ...
阅读全文
posted @ 2015-05-12 16:59 Ricochet!
阅读(293)
评论(0)
推荐(0)
编辑
2015年5月9日
背包问题解法集合
摘要: http://www.cnblogs.com/eternalwt/p/3314436.htmlhttp://www.cnblogs.com/qinyg/archive/2012/04/26/2471829.htmlhttp://www.cnblogs.com/jiangjun/archive/201...
阅读全文
posted @ 2015-05-09 17:49 Ricochet!
阅读(239)
评论(0)
推荐(0)
编辑
Ka的递归编程练习 Part4|Hanoi汉诺塔,双色汉诺塔的也有
摘要: 1 #include 2 void hanoi(int s,char a,char b,char c) //a是出发盘,b是中途盘,c是结束盘 3 { 4 if(s==0) return; 5 hanoi(s-1,a,c,b); //把最底下的从a借助c移动到b 6 ...
阅读全文
posted @ 2015-05-09 17:13 Ricochet!
阅读(223)
评论(0)
推荐(0)
编辑
Ka的递归编程练习 Part3|集合划分啦
摘要: 1 #include 2 int ss(int n,int k) 3 { 4 if(n==k||k==1) return 1; 5 return ss(n-1,k-1)+k*ss(n-1,k); 6 } 7 int main() 8 { 9 int s,n,k;10...
阅读全文
posted @ 2015-05-09 17:07 Ricochet!
阅读(225)
评论(0)
推荐(0)
编辑
2015年5月5日
题目组
该文被密码保护。
阅读全文
posted @ 2015-05-05 18:02 Ricochet!
阅读(6)
评论(0)
推荐(0)
编辑
2015年4月25日
Ka的递归编程练习 Part2|做到吐的正序逆序输出、等差数列和
摘要: 1 #include 2 void PP(int n) 3 { 4 if(n==0) return; 5 PP(n/10); 6 printf("%d",n%10); 7 } 8 void NP(int n) 9 {10 if(n==0) return;11 ...
阅读全文
posted @ 2015-04-25 18:16 Ricochet!
阅读(228)
评论(0)
推荐(0)
编辑
2015年4月23日
求极值
摘要:
阅读全文
posted @ 2015-04-23 17:58 Ricochet!
阅读(225)
评论(0)
推荐(0)
编辑
2015年4月22日
Ka的递推编程练习 Final.Part4|NOIP2002 马拦过河卒
摘要: 1 #include 2 int main() 3 { 4 int desk[101][101]={0}; 5 int i,j,m,n; 6 int hx,hy; 7 scanf("%d%d",&m,&n); 8 scanf("%d%d",&hx,&hy);...
阅读全文
posted @ 2015-04-22 10:26 Ricochet!
阅读(174)
评论(0)
推荐(0)
编辑
2015年4月15日
Ka的递归编程练习 Part1|你体会过纯纯的二进制次幂表示吗
摘要: 1 #include 2 void bin(int i,int x) 3 { 4 if(i==0) return;//递归结束条件 5 bin(i/2,x+1); 6 if(i%2) //当此时的二进制是1时 7 { 8 if(i/2==0...
阅读全文
posted @ 2015-04-15 09:45 Ricochet!
阅读(197)
评论(0)
推荐(0)
编辑
2015年4月11日
Ka的递推编程练习 Part3|位数问题
摘要: 1 #include 2 int main() 3 { 4 int n; 5 long long int a=9,b=1,x,y; 6 int i; 7 //freopen("te.txt","w",stdout); 8 scanf("%d",&n...
阅读全文
posted @ 2015-04-11 18:03 Ricochet!
阅读(206)
评论(0)
推荐(0)
编辑
上一页
1
···
7
8
9
10
11
12
下一页