Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
364 B
2
Indexable
Never
#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;
}