#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
int main()
{
char kata[10001];
int input,n;
input=n=0;
int mark[10001]={0};
scanf("%d",&input);while(getchar()!='\n');
int count=0;
for(int i=0;i<input;i++)
{
scanf("%c",&kata[i]);
}
for(int i=0;i<input;i++)
{
if(kata[i]=='a'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='i'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='u'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='e'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='o'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
}
// printf("%d\n",count);
if(count==5)printf("YES\n");
else printf("NO\n");
}
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
int main()
{
char kata[10001];
int input,n;
input=n=0;
int mark[10001]={0};
scanf("%d",&input);while(getchar()!='\n');
int count=0;
for(int i=0;i<input;i++)
{
scanf("%c",&kata[i]);
}
for(int i=0;i<input;i++)
{
if(kata[i]=='a'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='i'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='u'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='e'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='o'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
}
// printf("%d\n",count);
if(count==5)printf("YES\n");
else printf("NO\n");
}
its showing 0% while evaluating...
ReplyDelete#include
ReplyDelete#include
#include
#include
#include
int main()
{
char kata[10001];
int input,n,i;
input=n=0;
int mark[10001]={0};
scanf("%d",&input);while(getchar()!='\n');
int count=0;
for( i=0;i<input;i++)
{
scanf("%c",&kata[i]);
}
for( i=0;i<input;i++)
{
if(kata[i]=='a'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='i'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='u'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='e'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
if(kata[i]=='o'&&mark[(int)kata[i]]==0)
{
count++;
mark[(int)kata[i]]=1;
}
}
// printf("%d\n",count);
if(count==5)printf("YES\n");
else printf("NO\n");
return 0;
}
83% evaluating
Delete