斐波那契数列题解 递归版 摘要:解题思路: 一看斐波那契数列这几个大字,这不是函数递归的常见示例吗?这个题用递归超级简单。 递归的核心思想就是:大事化小,小事化了,把一个大型问题转化为更小…… 题解列表 2022年10月27日 0 点赞 0 评论 358 浏览 评分:0.0
C语言-自定义函数之字符串反转--直接法 摘要:解题思路:字符串的反转就是直接输出这个字符串的逆序。注意事项:1、为什么是 gets(a);因为:gets函数类似于scanf函数,用于读取标准输入,gets函数可以读入空格,而scanf函数不可以。…… 题解列表 2022年10月27日 0 点赞 0 评论 375 浏览 评分:0.0
1084: 用筛法求之N内的素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int N; int j; scanf("%d",&N); for(int i=1;i<…… 题解列表 2022年10月27日 0 点赞 0 评论 257 浏览 评分:0.0
没用数组,简单处理 摘要:解题思路:没用数组参考代码:#include<iostream>using namespace std;int main(){ int i,s[9]; for(i=0;i<9;i++) c…… 题解列表 2022年10月27日 0 点赞 0 评论 302 浏览 评分:0.0
题解 1035: [编程入门]自定义函数之字符类型统计 摘要: #include #include int main() { char a[100]; int b[4]={0}…… 题解列表 2022年10月28日 0 点赞 0 评论 328 浏览 评分:0.0
简单易懂的题解(迭代) 摘要:解题思路: 这个题看似简单,必须需要懂它的逻辑才能做出来。经过我动手写,得到了一个规律:第一个数为a,第二个数为 a * 10 ^1 + 第一个数;第三个数等于a * 1…… 题解列表 2022年10月28日 0 点赞 0 评论 300 浏览 评分:0.0
求偶数和,无数组!!(C语言) 摘要:解题思路:输入m循环判断,无数组(C语言)注意事项:无参考代码:#include<stdio.h>int main(){ int x,i,m,sum=0; scanf("%d",&x); for(i=…… 题解列表 2022年10月28日 0 点赞 0 评论 236 浏览 评分:0.0
常规发处理变量 摘要:解题思路:注意事项:调用fun()函数时,注意参数参考代码:#include<stdio.h> int fun(int num) { int a, b, c, d; a = num / 1…… 题解列表 2022年10月28日 0 点赞 0 评论 312 浏览 评分:0.0
1872:春夏秋冬判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int month; while(scanf("%d",&month)!=EOF) { if(month>=…… 题解列表 2022年10月29日 0 点赞 0 评论 386 浏览 评分:0.0
2226 .c语言练习 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,t; a=b=c=t=0; scanf("%d %d %d",&a,&b,&c); if(…… 题解列表 2022年10月29日 0 点赞 0 评论 370 浏览 评分:0.0