记录保存
#include<bits/stdc++.h>
using namespace std;
map<string,int> a;
int main()
{
int n, mx = 0;
cin >>n;
for(int i = 1; i <= n; i ++)
{
string s[3];
cin >> s[0] >> s[1] >> s[2];
sort(s, s + 3);
a[s[0] +" "+ s[1]+" " + s[2]] ++;//记得加空格
mx = max(mx, a[s[0] +" "+ s[1]+" " + s[2]]);
}
cout << mx <<endl;
return 0;
}