📅  最后修改于: 2022-03-11 14:44:56.589000             🧑  作者: Mango
#include
using namespace std;
bool compare(const pair&a, const pair&b)
{
return a.second mp;
cin>>n;
for (int i=0; i>key;
mp[key]++;
}
maxn = max_element(mp.begin(), mp.end(), compare)->second;
cout<