1 条题解

  • 0
    @ 2026-6-16 12:37:49
    #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;
    }
    
    • 1

    信息

    ID
    7220
    时间
    1000ms
    内存
    256MiB
    难度
    3
    标签
    递交数
    43
    已通过
    23
    上传者