![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C基础
文章平均质量分 56
鹿鹿鱼
代码没有灵魂
展开
-
7-49 Have Fun with Numbers
7-49 Have Fun with Numbers**Have Fun with Numbers**题目注解无注释版代码注释版代码 Have Fun with Numbers Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens原创 2022-05-19 17:45:10 · 173 阅读 · 0 评论 -
PTA-兔子繁衍问题--C语言
一对兔子,从出生后第3个月起每个月都生一对兔子。小兔子长到第3个月后每个月又生一对兔子。假如兔子都不死,请问第1个月出生的一对兔子,至少需要繁衍到第几个月时兔子总数才可以达到N对? 输入格式: 输入在一行中给出一个不超过10000的正整数N。 输出格式: 在一行中输出兔子总数达到N最少需要的月数。 输入样例: 30 输出样例: 9 分析: #include <stdio.h> int main () { int n,i; scanf("%d",&n).原创 2022-04-27 04:06:06 · 364 阅读 · 0 评论