乘方计算题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 2 点赞 0 评论 382 浏览 评分:10.0
人口增长问题题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 1 点赞 0 评论 392 浏览 评分:10.0
字符串连接 解题思路:注意事项:连接的时候可以用数组形式赋值也可以用指针形式赋值,但是其实最后可以加一个长度限制的判断参考代码:#include#includevoidconcat_2_str(char*str1,char*str2);intmain(){charstr1[1 题解列表 2025年10月29日 1 点赞 0 评论 711 浏览 评分:10.0
[编程入门]自定义函数之字符提取 解题思路:注意事项:参考代码:#include#includevoidfind_char(char*str,char*result);intmain(){charstr[200]={0},result[201]={0};fgets(str, 题解列表 2025年10月30日 0 点赞 0 评论 593 浏览 评分:10.0
1738:多组测试数据,实现从大到小排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i,j,a[n…… 题解列表 2025年10月30日 1 点赞 0 评论 408 浏览 评分:10.0
编写题解 1551: 蓝桥杯算法提高VIP-种树 一点点想法 摘要:解题思路:分两种情况,要么选首元素,要么选尾元素,避免首尾冲突注意事项:n=1时,仅m=1有效环形数组选不相邻m个,有效范围是 1<=m<=n/2参考代码:#inc…… 题解列表 2025年10月30日 3 点赞 1 评论 383 浏览 评分:10.0
2846:统计字符数组中的数字字符的个数 解题思路:注意事项:参考代码:#includeintmain(){charstr[255];inti,count=0;gets(str);for(i=0;str[i]!='\0';i++){if(str[i]>='0'&&str[i]<='9& 题解列表 2025年10月30日 3 点赞 0 评论 757 浏览 评分:10.0
2847:找第一个只出现一次的字符 解题思路:注意事项:参考代码:#include#includeintmain(){charstr[100000];intcount[26]={0};intflag=0;fgets(str,sizeof(str), 题解列表 2025年10月31日 0 点赞 0 评论 595 浏览 评分:10.0
易懂基础123456 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a,b,c; scanf(&quo…… 题解列表 2025年10月31日 1 点赞 0 评论 478 浏览 评分:10.0
Manacher算法O(n)时间复杂度求解回文子串 摘要:算法基础:**manacher算法**(叫**马拉车算法**太Low了😂)manacher算法是一个很质朴的算法,通俗来讲就是“**已掌握信息能用就用,不能用就中心扩展**”,我认为只要看透这个递…… 题解列表 2025年11月01日 1 点赞 0 评论 440 浏览 评分:10.0