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

#include<stdio.h>
int main(){
	int t,i,j,w;
	int all=0;
	char c[50];
	
	for(i=0;i<50;i++){
		c[i]=' ';
	}
	
	scanf("%d",&t);
	for(i=0;i<t;i++){
		scanf("%s",&c);
		for(j=0;j<50;j++){
			if(c[j]=='a'){
				all=all+1;
			}
			if(c[j]=='e'){
				all=all+1;
			}
			if(c[j]=='i'){
				all=all+1;
			}
			if(c[j]=='o'){
				all=all+1;
			}if(c[j]=='u'){
				all=all+1;
			}
		}
		printf("%d\n",all);
		all=0;
	    for(w=0;w<50;w++){
	  	    c[w]=' ';
    	}
	}
	
	return 0;
}