Source Code
// {In the Name of Allah, the Most Beneficent, the Most Merciful }

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
#define mp make_pair
#define pb push_back
#define pf push_front
#define IOS ios_base::sync_with_stdio(0);cin.tie(NULL);
#define no cout<<"NO\n"
#define yes cout<<"YES\n"
#define el "\n"
int freq[27];

int main()
{
       /**/IOS/**/

      int t;
      cin>>t;

      int c=t-1;

      string s;
      char q='1';
      while(t--)
      {
          char sh='A';

          cin>>s;
          bool tr=1;

         sort(s.begin(),s.end());

         for(int i=0;i<13;i++)
         {
             //cout<<sh<<endl;
             if(s[i]!=sh)
             {
                 tr=0;
                 break;
             }
             sh+=1;
         }
         if(tr)
            cout<<"YES"<<endl;
         else
            cout<<"NO"<<endl;

      }






}
Copy
Well-indexed? 332IQ
GNU G++17
26 ms
512 KB
Accepted