编写题解 1551: 蓝桥杯算法提高VIP-种树 一点点想法 摘要:解题思路:分两种情况,要么选首元素,要么选尾元素,避免首尾冲突注意事项:n=1时,仅m=1有效环形数组选不相邻m个,有效范围是 1<=m<=n/2参考代码:#inc…… 题解列表 2025年10月30日 2 点赞 1 评论 86 浏览 评分:10.0
1738:多组测试数据,实现从大到小排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i,j,a[n…… 题解列表 2025年10月30日 1 点赞 0 评论 102 浏览 评分:10.0
[编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void find_char(char *str, char *resu…… 题解列表 2025年10月30日 0 点赞 0 评论 110 浏览 评分:10.0
适合新手的题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double b;i…… 题解列表 2025年10月30日 0 点赞 0 评论 75 浏览 评分:2.0
3010:n以内的奇数偶数之和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=1,n,sum1=0,sum2=0; scanf("%d",&…… 题解列表 2025年10月30日 0 点赞 0 评论 101 浏览 评分:0.0
2000:列举小于n的偶数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i=1,n; scanf("%d",&n); while(i&l…… 题解列表 2025年10月30日 0 点赞 0 评论 112 浏览 评分:0.0
2544:N以内的数累加求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i=1,sum=0; scanf("%d"…… 题解列表 2025年10月30日 0 点赞 0 评论 128 浏览 评分:0.0
字符串连接 摘要:解题思路:注意事项:连接的时候可以用数组形式赋值也可以用指针形式赋值,但是其实最后可以加一个长度限制的判断参考代码:#include <stdio.h>#include <strin…… 题解列表 2025年10月29日 1 点赞 0 评论 192 浏览 评分:10.0
人口增长问题题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 1 点赞 0 评论 111 浏览 评分:10.0
乘方计算题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 1 点赞 0 评论 111 浏览 评分:10.0