蓝桥杯2017年第八届真题-发现环(并查集, DFS) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e5 + 7;int p[N];bool vis[N]…… 题解列表 2022年08月08日 0 点赞 0 评论 408 浏览 评分:0.0
1059: 二级C语言-等差数列 摘要:解题思路:sum=2+5+8+11+14+…,输入正整数n,求sum的前n项和。根据题目要求,我们需要 元素个数 元素各值 数列之和 三个量 以及通项公式的计算(笑)注意事项:当for语句中i…… 题解列表 2022年08月08日 0 点赞 0 评论 362 浏览 评分:0.0
蓝桥杯2017年第八届真题-合根植物(C++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e6 + 5;int p[N];int getFath…… 题解列表 2022年08月08日 0 点赞 0 评论 358 浏览 评分:0.0
1052: [编程入门]链表合并 摘要:解题思路:注意事项:结构体使用,结构体指针参考代码:#include<stdio.h> #include<malloc.h> typedef struct Node { int sn…… 题解列表 2022年08月08日 0 点赞 0 评论 244 浏览 评分:0.0
C# 蓝桥杯算法提高VIP-扑克排序 摘要:```cpp #include using namespace std; struct fun { char qw; char qe; int qa; int qs; }; …… 题解列表 2022年08月08日 0 点赞 0 评论 451 浏览 评分:0.0
1031: [编程入门]自定义函数之字符串反转(C) 摘要:解题思路:a=123abc ->exchang()->b=cba321->strcat()注意事项:b[j] = '\0';参考代码:#include<stdio.h> #inclu…… 题解列表 2022年08月08日 0 点赞 0 评论 203 浏览 评分:0.0
题解 1055: 二级C语言-进制转换 摘要:解题思路:没啥好说的,不明白为什么会放到数组的课后题。参考代码:#include<stdio.h> int main(void){ int num; scanf("%d",&num); …… 题解列表 2022年08月09日 0 点赞 0 评论 283 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:会用到的标准库函数,gets(),puts(),strlen(),前两个是在头文件stdio.h中,后一个是在string.h里,用法如下: 1、gets():与scanf("…… 题解列表 2022年08月09日 0 点赞 0 评论 276 浏览 评分:0.0
题解 1056: 二级C语言-温度转换(C) 摘要:解题思路:注意数据类型用float最后输出正确的格式即可。参考代码:#include<stdio.h> int main(void){ float F,C; scanf("%f",&F)…… 题解列表 2022年08月09日 0 点赞 0 评论 457 浏览 评分:0.0
题解 1057: 二级C语言-分段函数(C) 摘要:解题思路:if嵌套选择即可解决参考代码:#include<stdio.h> int main(void){ float x,y; scanf("%f",&x); if(x<1)…… 题解列表 2022年08月09日 0 点赞 0 评论 462 浏览 评分:0.0