Problem Type :
implementation
strings
#include<stdio.h>
#include<ctype.h>
#include<string.h>
#define MAX 101
int main()
{
long int i1,len,arr1[MAX];
char arr[MAX],c1;
while(scanf("%ld",&len)==1)
{
getchar();
for(i1=0; i1<len; i1++)
{
scanf("%c",&arr[i1]);
c1=toupper(arr[i1]);
arr1[c1]=1;
}
int cou=0;
for(i1=65; i1<=90; i1++)
{
if(arr1[i1]==1)
continue;
else
{
cou=1;
break;
}
}
if(cou==1)
{
printf("NO\n");
}
else
{
printf("YES\n");
}
memset(arr1,0,sizeof(arr1));
}
}
No comments:
Post a Comment