题解 2913: 整数去重 摘要: #include using namespace std; int a[20000],b[20000]; int n,m,sum; int main()…… 题解列表 2023年12月20日 0 点赞 0 评论 248 浏览 评分:9.9
来个C++的题解 摘要:解题思路:以先序遍历为基础,找到root后在中序遍历中找root的位置并设置好范围len,变换pre和in数组的head指针参考代码:#include<bits/stdc++.h>#define re…… 题解列表 2023年12月20日 0 点赞 0 评论 247 浏览 评分:9.9
利用指针遍历大量数据提高效率 摘要:解题思路:利用指针遍历大量数据提高效率 memset 赋初值注意事项:参考代码:#include<iostream>#include<cstring>using name…… 题解列表 2023年12月19日 0 点赞 0 评论 179 浏览 评分:0.0
利用指针遍历得到答案 摘要:解题思路:循环输入数据,利用指针遍历,然后寻找最大值,记录位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n;…… 题解列表 2023年12月19日 0 点赞 0 评论 157 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=10010; int main(){ string a,b; getline(cin,a);…… 题解列表 2023年12月19日 0 点赞 0 评论 185 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=100010; int main(){ string a,b; getline(cin,a)…… 题解列表 2023年12月19日 0 点赞 0 评论 164 浏览 评分:9.9
题解 2850: 输出亲朋字符串 摘要: #include using namespace std; const int N=100000; int main() { string…… 题解列表 2023年12月19日 0 点赞 0 评论 147 浏览 评分:0.0
903: 不高兴的津津 摘要:``` #include using namespace std; const int N=110; int a[N] ,b[N]; int main() { int t = 0; …… 题解列表 2023年12月19日 0 点赞 0 评论 154 浏览 评分:0.0
2847: 找第一个只出现一次的字符 摘要:``` #include using namespace std; const int N=10010; char s[N]; int cnt[26]; int main(){ cin…… 题解列表 2023年12月19日 0 点赞 0 评论 195 浏览 评分:0.0
题解 2847: 找第一个只出现一次的字符 摘要: #include using namespace std; const int N=100000; char a[N]; int cnt[26]; …… 题解列表 2023年12月19日 0 点赞 0 评论 245 浏览 评分:9.9