Source Code
#include <bits/stdc++.h>
using namespace std;
#define IOS ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL);
#define ll long long
const int  N =26;
int occ[N];
int main() {
    IOS

    int t;cin>>t;
    while(t--){
        string s;cin>>s;
        memset(occ,0, sizeof(occ));
        for(int i = 0;i<s.size();i++)
            occ[s[i]-'A']++;
        int ans=0;
        for(int i = 0;i<13;i++)
            if(occ[i])
                ans++;
        cout<<(ans==13?"YES\n":"NO\n");

    }

}
Copy
Well-indexed? HusseinSaad
GNU G++17
5 ms
312 KB
Accepted