搞懂map自定义排序 #include#includeusingnamespacestd;//mapa相当于mapa;//如果是mapa,char由大到小排序//自定义排序structcmp{booloperator()(constchar&a,constchar&b)const{returna 题解列表 2024年01月11日 0 点赞 0 评论 554 浏览 评分:0.0 1402: 简单的字符串 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; while(n--) …… 题解列表 2023年03月22日 0 点赞 0 评论 982 浏览 评分:9.9 编写题解 1402: 简单的字符串(独家复杂方法) ###都拿去吧!应该很少有人会这样写```cpp#includeusingnamespacestd;intmain(){intb[27]={0};intn;cin>>n;while(n--){strings;cin>>s;inti;for(i=0;i 题解列表 2023年01月24日 0 点赞 0 评论 683 浏览 评分:9.9 1402: 简单的字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll; int main(){ int …… 题解列表 2022年05月25日 0 点赞 0 评论 498 浏览 评分:0.0 编写题解 1402: 简单的字符串 摘要:解题思路:字符数组用来作比较,数组用来计数。记得加判断注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(…… 题解列表 2022年04月18日 0 点赞 0 评论 549 浏览 评分:0.0 (C++代码) 简单的字符串-题解 递归函数解法 摘要:#include<iostream> #include<string> #include<string.h> using namespace std; int Count;//记录相同的项的个…… 题解列表 2022年03月26日 0 点赞 0 评论 689 浏览 评分:0.0 简单的字符串(有思路C++) #includeusingnamespacestd;//因为每次只用对比后一个字符,所以这样模拟就行,但是//要注意最后一个字符怎么输出,其方法是加一个无关字符,然后让计数器从0开始,//因为有最后一个无关字符,所以原字符串的最后一个字符也能被输出, 题解列表 2022年02月12日 0 点赞 0 评论 737 浏览 评分:0.0 简单字符串的不简单解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ int N; string s; cin>>N; getl…… 题解列表 2022年01月22日 0 点赞 0 评论 510 浏览 评分:0.0 简单的字符串-题解(C++代码) 摘要:解题思路:循环遍历, 很通俗易懂的解法!注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; typedef long long ll;…… 题解列表 2021年02月02日 0 点赞 0 评论 901 浏览 评分:9.9 简单的字符串-题解(C++代码) 摘要:参考代码:#include <iostream> using namespace std; int main() { int n; cin>>n; while(n--){ st…… 题解列表 2020年06月27日 0 点赞 0 评论 628 浏览 评分:0.0 « 12 »
1402: 简单的字符串 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; while(n--) …… 题解列表 2023年03月22日 0 点赞 0 评论 982 浏览 评分:9.9
编写题解 1402: 简单的字符串(独家复杂方法) ###都拿去吧!应该很少有人会这样写```cpp#includeusingnamespacestd;intmain(){intb[27]={0};intn;cin>>n;while(n--){strings;cin>>s;inti;for(i=0;i 题解列表 2023年01月24日 0 点赞 0 评论 683 浏览 评分:9.9
1402: 简单的字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll; int main(){ int …… 题解列表 2022年05月25日 0 点赞 0 评论 498 浏览 评分:0.0
编写题解 1402: 简单的字符串 摘要:解题思路:字符数组用来作比较,数组用来计数。记得加判断注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(…… 题解列表 2022年04月18日 0 点赞 0 评论 549 浏览 评分:0.0
(C++代码) 简单的字符串-题解 递归函数解法 摘要:#include<iostream> #include<string> #include<string.h> using namespace std; int Count;//记录相同的项的个…… 题解列表 2022年03月26日 0 点赞 0 评论 689 浏览 评分:0.0
简单的字符串(有思路C++) #includeusingnamespacestd;//因为每次只用对比后一个字符,所以这样模拟就行,但是//要注意最后一个字符怎么输出,其方法是加一个无关字符,然后让计数器从0开始,//因为有最后一个无关字符,所以原字符串的最后一个字符也能被输出, 题解列表 2022年02月12日 0 点赞 0 评论 737 浏览 评分:0.0
简单字符串的不简单解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ int N; string s; cin>>N; getl…… 题解列表 2022年01月22日 0 点赞 0 评论 510 浏览 评分:0.0
简单的字符串-题解(C++代码) 摘要:解题思路:循环遍历, 很通俗易懂的解法!注意事项:无参考代码:#include <bits/stdc++.h> using namespace std; typedef long long ll;…… 题解列表 2021年02月02日 0 点赞 0 评论 901 浏览 评分:9.9
简单的字符串-题解(C++代码) 摘要:参考代码:#include <iostream> using namespace std; int main() { int n; cin>>n; while(n--){ st…… 题解列表 2020年06月27日 0 点赞 0 评论 628 浏览 评分:0.0