阿尔法乘积(c语言代码) 摘要:```c #include //4018224312 → 4 * 1 * 8 * 2 * 2 * 4 * 3 * 1 * 2 → 3072 → 3 * 7 * 2 → 42 → …… 题解列表 2023年04月20日 0 点赞 0 评论 872 浏览 评分:9.9
蓝桥杯算法训练VIP-学生成绩(c语言) ```c#include#includetypedefstructstudent{charname[20];charsex[7];intage;intscore;}stu;voidbubble_sort(stu*data,constintlen);intmain(){intn;scanf("%d", 题解列表 2023年04月20日 0 点赞 0 评论 736 浏览 评分:9.9
提货单(c语言) ```c#include#includetypedefstructdata{charmc[100];doubledj;intsl;}prut;intmain(){intn;scanf("%d",&n);getchar();prut*database=(prut*)malloc(n*sizeof(pru 题解列表 2023年04月20日 0 点赞 0 评论 662 浏览 评分:9.9
递归倒置字符数组(c语言) ```c#include#includevoidreverse(char*,int,int);intmain(){intn=0;charstr[100]={0};scanf("%d",&n);getchar();//scanf的结束输出要么输入空格要么回车gets(str);//如果没有getchar 题解列表 2023年04月20日 1 点赞 0 评论 825 浏览 评分:7.0
进制转换(我的怨种写法) ```c#include#includeintconvert(char*);intoct(int);intmain(){charhex[4]={0};scanf("%c%c%c",hex,hex+1,hex+2);if((hex[0]==48)&&(hex[1]==48)&&(hex[2]==48)) 题解列表 2023年04月20日 0 点赞 0 评论 603 浏览 评分:9.9
函数字符串的反转 ```c#include#includevoidf(chara[100]);intmain(){chara[100];gets(a);f(a);}voidf(chara[100]){charb[100];intl=strlen(a);`判断字符串长度`inti=0;for(i=0;a[i]!='\0' 题解列表 2023年04月20日 0 点赞 0 评论 590 浏览 评分:0.0
蓝桥杯算法提高VIP-质因数2(和质因数1一样) 摘要:```c #include int main() { int n; scanf("%d", &n); int i = 0, j = 0, max = n, cnt=0;//和质因数1…… 题解列表 2023年04月20日 0 点赞 0 评论 727 浏览 评分:9.9
字符串分类统计 #includeintmain(){chara[200];gets(a);intn1=0,n2=0,n3=0,n4=0;inti=0;for(i=0;a[i]!='\0';i++){if((a[i]>='a'&&a[i]='A'&&a[i]='0'&&a[i]引用文本##插入图片 ```c//这个算法是有规律的就拿题目给的例子来说//99=2*3*3*5//从2开始遍历数组每次找到他的第一个因子//90/2=4545/3=1515/3=55/5=190=2*3*3*5//66/2=3333/3=1111/11=166=2*3*11#include//将一个正整数N(1 题解列表 2023年04月20日 0 点赞 0 评论 689 浏览 评分:9.9 函数数字后移 解题思路:先判断有几项需要交换,然后将需要交换的从最后一位开始交换,存放到另一个数组之中,交换的次数-1对应与数组-1交换后的位置,次数-2对应于数组-2的位置,交换之后将没有改变的几项依次复制到b数组后面的几项注意事项:参考代码:intf(intn, 题解列表 2023年04月20日 0 点赞 0 评论 534 浏览 评分:0.0 « 12...557558559560561562563...29572958 »
函数数字后移 解题思路:先判断有几项需要交换,然后将需要交换的从最后一位开始交换,存放到另一个数组之中,交换的次数-1对应与数组-1交换后的位置,次数-2对应于数组-2的位置,交换之后将没有改变的几项依次复制到b数组后面的几项注意事项:参考代码:intf(intn, 题解列表 2023年04月20日 0 点赞 0 评论 534 浏览 评分:0.0