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: 264ms
Memory: 1092kB
In contest: 1276

#include<stdio.h>
#include<string.h>
#include<math.h>
#include<stdlib.h>
int main(){
	long long int t;
	scanf("%lld", &t);
	getchar();
	long long int n = 1;
	for(n = 1; n <=t; n++){
		char s[1000];
		scanf("%s", s);
		size_t length;
		length = strlen(s);
		if(length >=1 && length <=50){
			int i = 0;
		long long int num = 0;
		for(i = 0; i < length; i++){
			if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'){
				num+=1;
			}
		}
		printf("%lld\n", num);
		}
	}
	
	
	
	return 0;
}