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

#include<bits/stdc++.h>

using namespace std;

int main(){
	int n;
	scanf("%d",&n);
	char p[60];
	while(n--){
		int date=0;
		scanf("%s",&p);
		int len=strlen(p);
		for(int i=0;i<len;i++){
			if(p[i]<101){
				if(p[i]==97)date++;
			}
			else if(p[i]<105){
				if(p[i]==101)date++;
			}
			else if(p[i]<111){
				if(p[i]==105)date++;
			}
			else if(p[i]<117){
				if(p[i]==111)date++;
			}
			else if(p[i]==117)date++;
		}
		printf("%d\n",date);
	}
	return 0;
}