// 请把代码粘贴在这里
#include<bits/stdc++.h>
#include<map>
#include<string>
using namespace std;
int main()
{
map<char,int>char_t;
set<char>ss;//去重同次数字母,且自动排序
string line;
int temp=0;
cin>>line;
for(auto &c:line)
{
char_t[c]++;
}
for(auto &p:char_t)
{
temp=max(temp,p.second);
}
for(auto &pi:char_t)
{
if(pi.second==temp)
{
ss.insert(pi.first);
}
}
for(auto &s:ss)
{
cout<<s;
}
}
1 回复
0 转发
0 喜欢
13 阅读



