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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define long 51

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[])
{
	int t,l,s,i;
	char str[long];
	scanf("%d",&t);
    while(t--)
	{
	  scanf("%s",str);
	  
	  l=strlen(str);

      s=0;
	  for(i=0;i<l;i++)
	  {

	  	if(str[i]=='a'||str[i]=='e'||str[i]=='i'||str[i]=='o'||str[i]=='u')
	  	s=s+1;

	  }
      printf("%d\n",s);

	}
	
	return 0;
}