文章
38
粉丝
11
获赞
2
访问
26.9k
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
char ch;
cin >> n;
string s1,s2;
while (n > 0){
n -= 1;
map<char,int> m1,m2;
cin >> s1 >> s2;
for(int i = 0;i <= s1.size();i++){
ch = s1[i];
m1[ch]++;
}
for(int i = 0;i <= s2.size();i++){
ch = s2[i];
m2[ch]++;
}
if (m1 == m2) cout << "Yes" << endl;
else cout << "No" << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发