············&mid 摘要:解题思路://ASC||表,小写与大写之间差了32.注意事项://*str += 32; // 转换为小写字母 与 *str = *(str + 32);不同 //字符是可以直接比较的。if (*s…… 题解列表 2024年08月03日 0 点赞 0 评论 430 浏览 评分:9.9
大数的阶乘C语言代码 解题思路:大数的阶乘很容易超出基本数据类型的范围造成数据溢出,所以需要定义一个数组来存储数据(数组可以存放无限大的数据)。阶乘的本质就是数的相乘,因此在计算大数的阶乘的时候可以通过模拟笔算的方式,将数拆分成每一位,然后让每一位依次与数相乘,进位的数与前一位相加后如果还需要进位则继续按照这个逻辑计算, 题解列表 2024年08月03日 5 点赞 0 评论 1073 浏览 评分:10.0
本题不是排序,不是排序 重要的事情说三遍,本题很坑,因为这道题不是让你排序,其实是找到最大值和最小值然后和数组首元素和尾元素交换位置即可,其他元素不用管。```c#include#includevoidcreat(intarr[],intn){//输入函数for(inti=0;i 题解列表 2024年08月03日 0 点赞 0 评论 479 浏览 评分:0.0
列出最简真分数序列* 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int nums_1[100] = { 0 }; int len_1 =…… 题解列表 2024年08月02日 0 点赞 0 评论 439 浏览 评分:9.9
计算2的幂(超简单解答) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int n; scanf("%d",&n); …… 题解列表 2024年08月02日 0 点赞 0 评论 904 浏览 评分:9.9
快速排序,交换法,挖坑法,前后指针法。 #include#includevoids(int*a,int*b){inttmp=*a;*a=*b;*b=tmp;}intpartSort(intarray[],intleft,intright){////选哪边当key让另一边先走intkey=array[right], 题解列表 2024年08月02日 0 点赞 0 评论 447 浏览 评分:0.0
计算三角形面积(超标准答案) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> double distance(float x1, float y1, float x2, fl…… 题解列表 2024年08月02日 1 点赞 0 评论 814 浏览 评分:9.9
计算线段长度(最标准解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double Xa,Ya,Xb,Yb; scanf("%lf %…… 题解列表 2024年08月02日 0 点赞 0 评论 726 浏览 评分:9.9
2772: 苹果和虫子 摘要:解题思路:要判断虫子在规定时间内未吃的完整的苹果是否为整数注意事项:所剩苹果如果全是完整的,直接输出个数,不完整的要-1参考代码:#include<stdio.h>int main(){ in…… 题解列表 2024年08月02日 0 点赞 0 评论 827 浏览 评分:6.0
1034: [编程入门]自定义函数之数字分离 简单易懂版 ```c#include#includevoidfun(chararr[]){intn=strlen(arr);//获取数组长度for(inti=0;i 题解列表 2024年08月02日 0 点赞 0 评论 629 浏览 评分:0.0