Create 1282.cpp

This commit is contained in:
KiritoTRw 2016-05-22 23:46:21 +08:00
parent e2d0994387
commit 88839a9866

39
QUSTOJ/1282.cpp Normal file
View File

@ -0,0 +1,39 @@
#include <cstring>
#include <cstdio>
#include <cstdlib>
int c[26];
char buff[1024];
int main()
{
int n;
while(scanf("%d%*c",&n)==1)
{
gets(buff);
memset(c,0,sizeof(int)*26);
for(int i=0;i<n;i++)
{
if(buff[i]>='A'&&buff[i]<='Z')
{
++c[buff[i]-'A'];
}
else
{
++c[buff[i]-'a'];
}
}
bool flag=true;
for(int i=0;i<26;i++)
{
if(c[i]<1) flag=false;
}
if(!flag)
{
printf("NO\n");
}
else
{
printf("YES\n");
}
}
return 0;
}