一行代码解决(燃尽了) 摘要:解题思路: 通过 lambda 函数处理输入字符串:先用海象运算符分别统计字母 (a)、数字 (b)、空格 (c) 的数量,其他字符数由总长度减去 a、b、c 之和得到;再用 f-stri…… 题解列表 2025年10月26日 1 点赞 0 评论 104 浏览 评分:10.0
2856: 潜伏者 摘要:参考代码:#include<stdio.h>int main(){ char before[100] = { 0 }; char after[100] = { 0 }; char ciph…… 题解列表 2025年10月27日 1 点赞 0 评论 107 浏览 评分:10.0
乘方计算题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 1 点赞 0 评论 77 浏览 评分:10.0
人口增长问题题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){…… 题解列表 2025年10月29日 1 点赞 0 评论 78 浏览 评分:10.0
字符串连接 摘要:解题思路:注意事项:连接的时候可以用数组形式赋值也可以用指针形式赋值,但是其实最后可以加一个长度限制的判断参考代码:#include <stdio.h>#include <strin…… 题解列表 2025年10月29日 1 点赞 0 评论 93 浏览 评分:10.0
[编程入门]自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void find_char(char *str, char *resu…… 题解列表 2025年10月30日 0 点赞 0 评论 42 浏览 评分:10.0
1738:多组测试数据,实现从大到小排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int i,j,a[n…… 题解列表 2025年10月30日 1 点赞 0 评论 29 浏览 评分:10.0
编写题解 1551: 蓝桥杯算法提高VIP-种树 一点点想法 摘要:解题思路:分两种情况,要么选首元素,要么选尾元素,避免首尾冲突注意事项:n=1时,仅m=1有效环形数组选不相邻m个,有效范围是 1<=m<=n/2参考代码:#inc…… 题解列表 2025年10月30日 2 点赞 1 评论 35 浏览 评分:10.0
Manacher算法O(n)时间复杂度求解回文子串 摘要:算法基础:**manacher算法**(叫**马拉车算法**太Low了😂)manacher算法是一个很质朴的算法,通俗来讲就是“**已掌握信息能用就用,不能用就中心扩展**”,我认为只要看透这个递…… 题解列表 2025年11月01日 1 点赞 0 评论 50 浏览 评分:10.0