#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
string str;
getline(cin, str);
int m[128] = { 0 };
for (int i = 0; i < str.length(); i++)
{
if (isalpha(str[i]))
{
m[tolower(str[i])]++;
}
}
int k = max_element(m, m + 128) - m;
cout << char(k) << " " << m[k];
system("pause");
return 0;
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交