题解 1126: C语言训练-字符串正反连接

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

使用reverse求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ string str; cin>>str; cout<<s……

运用函数解决问题

摘要:解题思路:调用reverse函数在进行相加注意事项:建议了解字符串相关的函数参考代码#include <iostream>#include <string>#include <algorithm>us……

algorithm库是真好用

摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(……

字符串的修改(摸鱼做法)

根据题意每个字符想变成另一个字符只需一步即可所以我们只需要找出两个字符串中相同的字符个数然后拿最大的长度减去他们即可```c#includeusingnamespacestd;intmain(){stringa,b;intji=0;cin>>a>>b;intl1=a.size();intl2=b.si