题解
2025-08-03 19:51:52
发布于:浙江
0阅读
0回复
0点赞
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int h;
string s,copyed;
cin>>h;
while(h--){
string s1;
cin>>s1;
s+=s1;
}
for (char i:s) copyed+=i;
sort(s.begin(),s.end());
cout<<(s==copyed)<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个