![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
递归
charote233
这个作者很懒,什么都没留下…
展开
-
1sting(大数递归)
Description You will be given a string which only contains ‘1’; You can merge two adjacent ‘1’ to be ‘2’, or leave the ‘1’ there. Surly, you may get many different results. For example, given 1111 , y原创 2016-07-23 16:40:34 · 512 阅读 · 0 评论 -
母牛的故事(递归+水)
Description 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?Input 输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0#include<stdio.h> int shu(int k) { int a[56]; a[1]=1; a[2]=2; a[3]=原创 2016-07-23 16:15:04 · 290 阅读 · 0 评论