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: 234ms
Memory: 1712kB
In contest: 1276

#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<cmath>
#include<math.h>
#include<string.h>
#include<cstring>
using namespace std;
int main(void)
{

	/*printf("T\n");
	printf("F\n");
	printf("F\n");*/
	int t,ans;
	scanf("%d",&t);
	while(t--)
	{
		ans = 0;
		char c[110];
		scanf("%s",c);
		int len = strlen(c),i;
		for(i = 0;i < len;i++)
		{
			if(c[i] == 'a' || c[i] == 'e' || c[i] == 'i' || c[i] == 'o' || c[i] == 'u')
			{
				ans++;
			}
		}
		printf("%d\n",ans);
	}
	return 0;
}