C# 蓝桥杯算法训练VIP-最长字符串-size 摘要:```cpp #include using namespace std; string s,ss; int main() { for(int i=0;i>s; if(…… 题解列表 2022年07月29日 0 点赞 0 评论 219 浏览 评分:0.0
C# 字符串编辑-insert -erase-find 摘要:```cpp #include using namespace std; int main() { int t=0; string s; char n,m,a1,a2; …… 题解列表 2022年07月29日 0 点赞 0 评论 292 浏览 评分:0.0
题解 1218: 排列。这道题的关键点是输入到数组里的4个字符本身是不可以进行排序的,它们是按照已经规定好的顺序进行的排列。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[5]={0},b[4] = {0,…… 题解列表 2022年07月28日 0 点赞 0 评论 345 浏览 评分:9.9
用字符串流stringstream方法解题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; string a; getch…… 题解列表 2022年07月28日 0 点赞 0 评论 290 浏览 评分:0.0
递归解题编写题解 1004: [递归]母牛的故事 摘要:解题思路:可以通过对前面几个数据进行总结规律注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int f[1000]={0};int dfc(i…… 题解列表 2022年07月28日 0 点赞 0 评论 267 浏览 评分:6.0
C/C++别问为什么高精度,问就是上题改过来的 耗时1 摘要:代码解释都用注释写在旁边了解题思路:一步步来就没问题注意事项:上题过了这题就一遍过;可能要有的:①忽略前导0 如009+001-002这样的②直接回车也输出0参考代码:#include<stdio.h…… 题解列表 2022年07月28日 0 点赞 0 评论 344 浏览 评分:9.9
C# 高精度加法 摘要:解题思路: 逆序储存相加(是为了从个位开始相加,方便计算)(想一下 笔算 是不是从个位开始相加的),再逆序输出,long long存不下吗,用数组来做 注意事项: 逆序储存相加 ,逆序输出…… 题解列表 2022年07月28日 0 点赞 0 评论 323 浏览 评分:0.0
C# 1073: 弟弟的作业 atoi(s.c_str())函数 摘要:```cpp #include using namespace std; int main() { //列如1+2=3; int a,c,ans=0;//…… 题解列表 2022年07月28日 0 点赞 0 评论 276 浏览 评分:0.0
#c++字符串对比 transform(s.begin(),s.end(),s.begin(),::toupper); //全部转成大写 摘要:```cpp #include using namespace std; int main() { string s,ss; cin>>s>>ss; if(s.size()!=ss…… 题解列表 2022年07月28日 0 点赞 0 评论 445 浏览 评分:0.0
1742: 字符串内排序C++题解 摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std; int main() { int i,j,a[10000]={}; str…… 题解列表 2022年07月28日 0 点赞 0 评论 382 浏览 评分:9.9