蒟蒻简单题钩石代码求条
查看原帖
蒟蒻简单题钩石代码求条
561621
NoMoreLove楼主2024/7/21 08:08
#include<bits/stdc++.h>
using namespace std;
int t,n,ans;
string ani,f;
map<string,int> mp;
int main(){
	cin>>t;
	while(t--){
		cin>>ani>>n;
		for(int i=1;i<=n;i++)
			cin>>f,mp[f]++,ans=max(ans,mp[f]);
	}
	cout<<ans;
	return 0;
}
2024/7/21 08:08
加载中...