Source Code
#include<bits/stdc++.h>
using namespace std;
#define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define fileIO freopen("input.txt", "r", stdin); freopen("output.txt", "w", stdout);
#define ammario main
typedef long long ll;
void pls_werk_b0ss()
{
	string s;cin>>s;
	sort(s.begin(),s.end());
	if(s=="ABCDEFGHIJKLM")cout<<"YES\n";
	else cout<<"NO\n";
}
int ammario()
{
    fastIO
    int t=1;cin>>t;
    while(t--)pls_werk_b0ss();
} 
Copy
Well-indexed? 3am0rab1
GNU G++17
7 ms
376 KB
Accepted