https://codeforces.com/problemset/problem/237/A
就是统计同一时刻最多有多少个人。
#include<bits/stdc++.h>
using namespace std;
map<string,int>mp;
int main(void)
{
int t; cin>>t;
int ans=0;
while(t--)
{
string a,b; cin>>a>>b;
string s=a+"-"+b;
mp[s]++;
ans=max(ans,mp[s]);
}
cout<<ans;
return 0;
}