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: 243ms
Memory: 1720kB
In contest: 1276

#include<bits/stdc++.h>
using namespace std;

int cnt = 0;
int T;
char str[10000];

int main(){
	scanf("%d",&T);
	while(T--){
		scanf("%s",str);
		int l = strlen(str);
		for(int i = 0 ; i < l ;i++){
			if(str[i] == 'a' || str[i] == 'e' || str[i] == 'o' || str[i] == 'i' || str[i] == 'u') cnt++;
		}
		printf("%d\n",cnt);
		cnt = 0;
	}
	return 0;
}