#include<bits/stdc++.h>
using namespace std;
int main()
{
long long n,sum=0;
while(cin>>n){
char s[n+1];
getchar();
gets(s);
if(strlen(s)<26)
cout<<"NO"<<endl;
else{
for(int i=0; i<strlen(s); i++)
s[i]=tolower(s[i]);
sort(s,s+strlen(s));
for(int i=0; i<strlen(s); i++){
if(s[i]!=s[i-1]){
if(s[i]=='a'||s[i]=='b'||s[i]=='c'||s[i]=='d'||s[i]=='e'||s[i]=='f'||s[i]=='g'||s[i]=='h'||s[i]=='i'||s[i]=='j'||s[i]=='k'||s[i]=='l'||s[i]=='m'||s[i]=='n'||s[i]=='o'||s[i]=='p'||s[i]=='q'||s[i]=='r'||s[i]=='s'||s[i]=='t'||s[i]=='u'||s[i]=='v'||s[i]=='w'||s[i]=='x'||s[i]=='y'||s[i]=='z')
sum++;
}
}
if(sum>=26){
cout<<"YES"<<endl;
}
else
cout<<"NO"<<endl;
}
sum=0;
}
return 0;
}
using namespace std;
int main()
{
long long n,sum=0;
while(cin>>n){
char s[n+1];
getchar();
gets(s);
if(strlen(s)<26)
cout<<"NO"<<endl;
else{
for(int i=0; i<strlen(s); i++)
s[i]=tolower(s[i]);
sort(s,s+strlen(s));
for(int i=0; i<strlen(s); i++){
if(s[i]!=s[i-1]){
if(s[i]=='a'||s[i]=='b'||s[i]=='c'||s[i]=='d'||s[i]=='e'||s[i]=='f'||s[i]=='g'||s[i]=='h'||s[i]=='i'||s[i]=='j'||s[i]=='k'||s[i]=='l'||s[i]=='m'||s[i]=='n'||s[i]=='o'||s[i]=='p'||s[i]=='q'||s[i]=='r'||s[i]=='s'||s[i]=='t'||s[i]=='u'||s[i]=='v'||s[i]=='w'||s[i]=='x'||s[i]=='y'||s[i]=='z')
sum++;
}
}
if(sum>=26){
cout<<"YES"<<endl;
}
else
cout<<"NO"<<endl;
}
sum=0;
}
return 0;
}
No comments:
Post a Comment