题解 2846: 统计数字字符个数 摘要: #include using namespace std; const int N=300; int cnt; string a; int m…… 题解列表 2023年12月19日 0 点赞 0 评论 297 浏览 评分:9.9
题解 2847: 找第一个只出现一次的字符 摘要: #include using namespace std; const int N=100000; char a[N]; int cnt[26]; …… 题解列表 2023年12月19日 0 点赞 0 评论 274 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=100010; int main(){ string a,b; getline(cin,a)…… 题解列表 2023年12月19日 0 点赞 0 评论 189 浏览 评分:9.9
蓝桥杯2023年第十四届省赛真题-子串简写(Java代码) 摘要:本文仅供参考理解解题思路,a、b、c、d、e、f输出皆正确,但提交错误。 a、b、c、d、e均为时间超限,其中a、b、c为95分; d是c的简化版,但为0分; e有两种思路c1和c2可以调换先后…… 题解列表 2023年12月19日 0 点赞 0 评论 699 浏览 评分:9.9
strcpy?不不不,都多余了 摘要:```c #include int main() { int a,b; char s[10000]; scanf("%d%s%d",&a,s,&b); c…… 题解列表 2023年12月20日 0 点赞 0 评论 230 浏览 评分:9.9
字符串p型编码 摘要:解题思路:注意事项:参考代码:myStr=input().strip()myStr1=""i=1for t in range(len(myStr)-1): if myStr[t+1]==mySt…… 题解列表 2023年12月20日 0 点赞 0 评论 272 浏览 评分:9.9
来个C++的题解 摘要:解题思路:以先序遍历为基础,找到root后在中序遍历中找root的位置并设置好范围len,变换pre和in数组的head指针参考代码:#include<bits/stdc++.h>#define re…… 题解列表 2023年12月20日 0 点赞 0 评论 279 浏览 评分:9.9
不能没落的strcmp和strcpy!!! 摘要:解题思路:strcmp函数:若返回值为0,说明两个字符串相等。若返回值小于0,说明 str1 小于 str2。若返回值大于0,说明 str1 大于 str2。作用: 用于比较两个字符串。函数原型: i…… 题解列表 2023年12月20日 0 点赞 1 评论 235 浏览 评分:9.9
题解 2913: 整数去重 摘要: #include using namespace std; int a[20000],b[20000]; int n,m,sum; int main()…… 题解列表 2023年12月20日 0 点赞 0 评论 282 浏览 评分:9.9
双循环+boolean 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年12月20日 0 点赞 0 评论 298 浏览 评分:9.9