贪心算法实现最小整数 摘要:解题思路: 贪心算法注意事项: 在做算法优化时,可以考虑在删除元素时让索引退一,但是需要区分都…… 题解列表 2025年01月24日 0 点赞 0 评论 141 浏览 评分:0.0
链表合并(作代码记录用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef …… 题解列表 2025年01月24日 0 点赞 0 评论 509 浏览 评分:0.0
很简单的笨办法 摘要:解题思路:定义数组来存L+1棵树,初始化为1。读取地铁区域数值,把数组中的地铁区域的数修改为0,这样就不用考虑区域的重合问题了。最后把数组中的数都加起来就是剩余树的值。注意事项:无参考代码:#incl…… 题解列表 2025年01月24日 2 点赞 0 评论 367 浏览 评分:0.0
题解 1933: 蓝桥杯算法提高VIP-约数个数 文章 > 编写题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0; scanf("%d",&a); for(int i…… 题解列表 2025年01月25日 0 点赞 0 评论 103 浏览 评分:0.0
题解 2215: 蓝桥杯算法训练-1的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0; scanf("%d",&a); for (int …… 题解列表 2025年01月25日 0 点赞 0 评论 124 浏览 评分:0.0
题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b=0; scanf("%d&qu…… 题解列表 2025年01月25日 0 点赞 0 评论 168 浏览 评分:0.0
题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[100]; float sum=0; s…… 题解列表 2025年01月25日 0 点赞 0 评论 556 浏览 评分:0.0
题解 2797: 最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[100],max=b[0]; scanf…… 题解列表 2025年01月25日 0 点赞 0 评论 221 浏览 评分:0.0
题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[1000],max,min; scanf…… 题解列表 2025年01月25日 0 点赞 0 评论 161 浏览 评分:0.0
题解 2801: 奇数求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b,sum = 0; scanf("…… 题解列表 2025年01月25日 0 点赞 0 评论 309 浏览 评分:0.0