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

#include<stdio.h>
int main(){
	int T,x=0,i;
	char s[50];
	scanf("%d",&T);
	while(T--){
		scanf("%s",s);
		for(i=0;s[i] !='\0';i++){
			if(s[i]=='a'||s[i]=='e'||s[i]=='i'||s[i]=='o'||s[i]=='u'){
				x=x+1;
			}
		}
		printf("%d\n",x);
		x=0;
	}
	return 0;
}