题解 1402: 简单的字符串

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

筛选

搞懂map自定义排序

#include#includeusingnamespacestd;//mapa相当于mapa;//如果是mapa,char由大到小排序//自定义排序structcmp{booloperator()(constchar&a,constchar&b)const{returna

1402: 简单的字符串

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

编写题解 1402: 简单的字符串

摘要:解题思路:字符数组用来作比较,数组用来计数。记得加判断注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(……

简单的字符串(有思路C++)

#includeusingnamespacestd;//因为每次只用对比后一个字符,所以这样模拟就行,但是//要注意最后一个字符怎么输出,其方法是加一个无关字符,然后让计数器从0开始,//因为有最后一个无关字符,所以原字符串的最后一个字符也能被输出,

简单字符串的不简单解法

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

简单的字符串-题解(C++代码)

摘要:解题思路:循环遍历, 很通俗易懂的解法!注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; typedef long long ll;……