蓝桥杯算法训练VIP-传球游戏-题解(C语言代码) 摘要:###思路 > ###上一层有n个i,下一层就有n个i-1和n个i+1 ###如图 第三层有一个4、两个1和一个3,那么第四层就有一个3(4-1)、一个5(4+1)、两个5(1-1)、两个2(1+…… 题解列表 2019年07月08日 0 点赞 0 评论 1125 浏览 评分:9.9
[编程入门]自定义函数之字符串拷贝-题解(C语言代码) #includeintmain(){voidfun(char*p1,char*p2,intn,intm);intn,m;charstr1[20],str2[20],*p1,*p2;p1=str1,p2=str2;scanf("%d",&n);//没有换行符输入语句中scanf("%s", 题解列表 2019年07月07日 0 点赞 0 评论 995 浏览 评分:0.0
蓝桥杯算法训练VIP-黑色星期五-题解(C语言代码) 摘要: ```c #include int isleapyear(int year){ if ((year % 4 == 0 && year % 100 != 0) || year % 400 …… 题解列表 2019年07月07日 0 点赞 2 评论 1324 浏览 评分:9.9
蓝桥杯算法训练VIP-集合运算-题解(C语言代码) ```c//交集:两个集合中相同的元素的集合//并集:合并后的集合,相同的元素覆盖//余集:B在A中的余集,就是将相同元素删除,A中没有被删除的元素的集合#include#includeintA[1000];intB[2000];intC[1000];voidselectsort(int*arr, 题解列表 2019年07月07日 0 点赞 0 评论 1424 浏览 评分:0.0
蓝桥杯算法训练VIP-阿尔法乘积-题解(C语言代码) 摘要:```c #include int main(){ unsigned int x; scanf("%u", &x); while (x > 9){ unsigned int…… 题解列表 2019年07月07日 0 点赞 0 评论 1416 浏览 评分:9.0
蓝桥杯算法训练VIP-阶乘-题解(C语言代码) 摘要:###思路 >####14!=1x2x3x4x5x6x7x8x9x10x11x12x13x14 = 13!x14 = 6227020800x14 ####6227020800x14 如果需要求…… 题解列表 2019年07月07日 0 点赞 3 评论 1554 浏览 评分:9.9
[编程入门]报数问题-题解(C语言代码) 报数问题指针简单易懂------------#includeintmain(){intn,i,k=0,m=0,sort[100],*p;scanf("%d",&n);p=sort;for(i=0;i 题解列表 2019年07月07日 0 点赞 0 评论 1896 浏览 评分:9.9
蓝桥杯算法训练VIP-s01串-题解(C语言代码) 摘要:###思路 > ####用两个字符数组相互交替判断即可,如果字符数组A的某个字符为0,则给字符数组B赋值1,如果字符数组A的某个字符为1,则给字符数组B赋值0和1,然后再将字符数组B所有字符赋值给字…… 题解列表 2019年07月07日 0 点赞 0 评论 1202 浏览 评分:9.9
蓝桥杯算法训练VIP-学生成绩-题解(C语言代码) 摘要:###思路 > ####使用冒泡排序排序,排序后顺序输出即可 ```c #include #include #include struct _Student{ char name…… 题解列表 2019年07月07日 0 点赞 0 评论 1393 浏览 评分:9.0
蓝桥杯算法训练VIP-提货单-题解(C语言代码) 摘要:###思路 > ####使用%*来接收商品名,但是不存储,然后单价和数量相乘。 ```c #include int main(){ int n, SL; double DJ, sum =…… 题解列表 2019年07月07日 0 点赞 0 评论 1355 浏览 评分:0.0