Result: Accepted
Time: 234ms
Memory: 1712kB
#include<stdio.h>
#include<iostream>
#include<algorithm>
#include<cmath>
#include<math.h>
#include<string.h>
#include<cstring>
using namespace std;
int main(void)
{
/*printf("T\n");
printf("F\n");
printf("F\n");*/
int t,ans;
scanf("%d",&t);
while(t--)
{
ans = 0;
char c[110];
scanf("%s",c);
int len = strlen(c),i;
for(i = 0;i < len;i++)
{
if(c[i] == 'a' || c[i] == 'e' || c[i] == 'i' || c[i] == 'o' || c[i] == 'u')
{
ans++;
}
}
printf("%d\n",ans);
}
return 0;
}