题解
2025-07-11 22:52:58
发布于:江苏
4阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
map<string,int> mp;
int main() {
int n;
cin>>n;
for(int i=0;i<n;i++){
string s;
cin>>s;
mp[s]++;
}
int maxx=-1;
for(auto i : mp) maxx=max(maxx,i.second);
cout<<maxx;
return 0;
}
这里空空如也
有帮助,赞一个