Untitled
Anonymous
c_cpp
09/02/2022 5:37 AM
488 B
23
Indexable
#include <bits/stdc++.h>
using namespace std;
void solve(){
int n;
string x, name;
name = "Timur";
cin>>n>>x;
sort(x.begin(),x.end());
sort(name.begin(),name.end());
if(x == name) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
}
int main(){
int t;
cin>>t;
for(int i=1;i<=t;i++){
solve();
}
return 0;
}
Editor is loading...