Start: Jun, 28, 2019 08:42:00
2019杭州师范大学第一届程序设计竞赛新生赛
End: Jun, 28, 2019 11:42:00
Time elapsed:
Time remaining:

Problem_ID: B
Result: Accepted
Time: 250ms
Memory: 1092kB
In contest: 1276

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>

int main()
{
	int t;
	int length=0;
	char a[60]={0};
	int count=0;
	scanf("%d",&t);

	while(t--)
	{
		
		scanf("%s",a);
		length=strlen(a);
		for(int i=0;i<length;++i)
		{
			if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u')
			count++;
		}

		printf("%d\n",count);
		for(int i=0;i<length;++i)
		{
			a[i]=0;
		}
		count=0;
	}
	
	
	
	
	return 0;
	
	
	
}