Who's in the Middle 摘要:解题思路:利用数组,冒泡排序注意事项:参考代码:#include<stdio.h>int main(){ long long int n,i,j; int arr[10000]; scanf("%ll…… 题解列表 2023年07月04日 0 点赞 0 评论 248 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> //strlen()函数在string头文件中,一定得先调用一下 char…… 题解列表 2023年07月04日 0 点赞 0 评论 188 浏览 评分:0.0
[编程入门]利润计算:switch-case实现 摘要:解题思路: 每个区间内的数单独计算利润,最后所有区间的利润相加,记得最终利润。 用switch-case实现: & 题解列表 2023年07月04日 0 点赞 0 评论 385 浏览 评分:9.9
3009: 判断闰年(c语言) 摘要:解题思路:能被4整除但不能被100整除,能被400整除的年份就是闰年注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a)…… 题解列表 2023年07月04日 0 点赞 0 评论 317 浏览 评分:0.0
1112: C语言考试练习题_一元二次方程(c语言) 摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,c; float m,x1,x2,t; scanf("%d %d %d",&a,&b…… 题解列表 2023年07月04日 0 点赞 0 评论 173 浏览 评分:0.0
数字的处理与判断(不用字符数组的解法) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/*给出一个不多于5位的整数,要求 1、求出它是几位数 2、分别输出每一位数字 3、按逆序输出各…… 题解列表 2023年07月04日 0 点赞 0 评论 240 浏览 评分:0.0
[递归]母牛的故事(c语言) 摘要:解题思路:首先就先列一些值,便于发现规律,更加直观年12345678牛的数量f[n]12346913191、找规律,有些小伙伴可能已经发现了f[n]=f[n-1]+f[n-3]2、对题目进行分析,根据…… 题解列表 2023年07月04日 0 点赞 0 评论 292 浏览 评分:9.9
蛇形矩阵简单易懂 摘要:解题思路:先理解下标的变换,再根据变换的规律依次将递增的自然数写入数组注意事项:备用一个变量t,避免最后遍历数组的时候,条件被改变参考代码:#include <stdio.h>int main(){ …… 题解列表 2023年07月04日 0 点赞 0 评论 247 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c,i; scanf("%d %d %d", &a, &b, &c); for (i = 2…… 题解列表 2023年07月04日 0 点赞 0 评论 444 浏览 评分:9.9
循环嵌套-小九九 摘要:解题思路:注意事项:参考代码:#include <stdio.h>/*小九九*/int main(){ for(int i=1;i<=9;i++){ for(int j=1…… 题解列表 2023年07月04日 0 点赞 0 评论 236 浏览 评分:0.0