1025: [编程入门]数组插入处理 摘要:解题思路:将输入的数据与数组中元素从前往后依次比较,找到位置记住输入数据该插入位置。将其后元素依次后移注意事项:注意0元素,参考代码此种情况单独讨论参考代码:#includeint main(){ …… 题解列表 2021年11月01日 0 点赞 0 评论 555 浏览 评分:0.0
数字的处理与判断 摘要:#include<stdio.h> #include<math.h>//调用函数 int main() { int n,i,count=0; int a,c,d; int b,f…… 题解列表 2021年10月31日 0 点赞 0 评论 632 浏览 评分:0.0
1069: 二级C语言-寻找矩阵最值 摘要:解题思路:1.符合条件的情况下输入正确的值 2.循环找出最大的数 3.根据找出的最大的数输出对应下标和该元素注意事项:1.注意n的取值范围 &nb 题解列表 2021年10月31日 0 点赞 0 评论 696 浏览 评分:7.3
用C语言解题 解题思路:a.当输入的n是偶数时,做除以2操作b.当输入的n是奇数时,做乘3加1操作1.输入两个整数i,j;2.比较两个数的大小,从小到大循环,进行上述运算(a.b.)3.统计i到j中每个数的循环的次数4.比较,输出i,j及大的循环次数。注意事项:笔者我第一次没看懂两个地方:1.要做循环从小到大, 题解列表 2021年10月31日 0 点赞 0 评论 655 浏览 评分:0.0
编写题解 1248: 简单的事情 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ double a,b,c,d; while(scanf("%lf%lf",&a,&b)!=EOF){…… 题解列表 2021年10月31日 0 点赞 0 评论 754 浏览 评分:9.9
C语言训练-自由落体问题(c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; double a=100,sum=100; scanf("%d",&n); …… 题解列表 2021年10月31日 0 点赞 0 评论 1032 浏览 评分:9.9
简单思路之三个字符串的排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[3][100],tmp[100]; int i,j…… 题解列表 2021年10月31日 0 点赞 0 评论 965 浏览 评分:9.9
Tom数(c语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { long long n; while(~scanf("%lld",&n)) …… 题解列表 2021年10月31日 0 点赞 0 评论 649 浏览 评分:6.0
编写题解 1246: 第几天 不考虑润年答案也对? 摘要:解题思路:正常的累加注意事项:参考代码:#include<stdio.h> int main() {int a,b,c,sum,d; char i,j; while(scanf("%d%c%d…… 题解列表 2021年10月31日 1 点赞 1 评论 1204 浏览 评分:9.9
algorithm库是真好用 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(…… 题解列表 2021年10月31日 0 点赞 0 评论 638 浏览 评分:0.0