求调
  • 板块P1808 单词分类
  • 楼主likejie
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/10/12 09:28
  • 上次更新2024/10/12 16:02:45
查看原帖
求调
1047550
likejie楼主2024/10/12 09:28
#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,x=1;
	string s;
	cin>>n;
	for(int i=1;i<=n;i++){
		cin>>s;
        sort(s.begin(),s.end());
	}
    for(int i=1;i<=n;i++){
    	for(int j=1;j<=n;j++){
    		if(s[i]==s[j])x++;
		}
	}
	if(x==1)cout<<0;
	else cout<<x/n;
	return 0;
}

2024/10/12 09:28
加载中...