#include <stdio.h>
int main(void)
{
int N;
scanf("%d", &N);
int n = 1;
int S = 1;
int temp = 0;
while ( S < N )
{
n++;
if ( n == 2 )
{
S += temp;
temp = S;
}
else
{
S += temp;
temp = S - temp;
}
}
printf("%dn", n);
return 0;
}
最后
以上就是怕黑花生最近收集整理的关于兔子繁衍问题 (15分)的全部内容,更多相关兔子繁衍问题内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复