#include<bits/stdc++.h> using namespace std; int N,M; string S,T; int main(){ cin>>N; while(N--){ cin>>M>>S>>T; sort(S.begin(),S.end()); sort(T.begin(),T.end()); if(T==S)cout<<"YES\n"; else cout<<"NO\n"; } return 0; }
使用您的 Hydro 通用账户