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

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<string>
#include<cstring>
#include<map>
using namespace std;
typedef long long ll;
const int maxn=100010;
int main()
{
	char zz[110];
	int t;
	scanf("%d",&t);
	getchar();
	while(t--)
	{
		int ans=0;
		scanf("%s",zz);
		int l=strlen(zz);
		for(int i=0;i<l;i++)
		{
			if(zz[i]=='a') ans++;
			if(zz[i]=='e') ans++; 
			if(zz[i]=='i') ans++; 
			if(zz[i]=='u') ans++; 
			if(zz[i]=='o') ans++;  
			
		}
		printf("%d\n",ans);
	}
	return 0;
}