散列1 电话聊天狂人
#include <iostream>
#include <map>
using namespace std;
int n;
map<string, int> h;
int main()
{
cin >> n;
string phone;
for (int i = 0; i < n; i ++)
for (int j = 0; j < 2; j ++)
{
cin >> phone;
h[phone] ++;
}
int cnt = 0, people = 0;
string num = "";
for (auto& [k, v] : h)
{
if (v > cnt)
{
num = k;
cnt = v;
}
}
for (auto& [k, v]