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

#include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<set>
#include<map>
#include<cstring>
using namespace std;
const int maxn=1e5+100;
const int inf=0x3f3f3f3f;
struct rule{
	bool operator()(const int &a1,const int &a2){
		return a1>a2;
	}
};
int main(){
	int t;
	scanf("%d",&t);
	getchar();
	while(t--){
		char s[100];
		scanf("%s",s);
		int tot=0;
		for(int i=0;i<strlen(s);i++){
			if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u') tot++;
		}
		printf("%d\n",tot);
	}
}