#include <iostream>
#include <map>
using namespace std;
int main(){
int n;cin>>n;
getchar();
string s;
while(n--){
getline(cin,s);
map<char,int> m;
for(int i=0;i<s.size();i++)
m[s[i]]++;
printf("a:%d\ne:%d\ni:%d\no:%d\nu:%d\n%s",m['a'],m['e'],m['i'],m['o'],m['u'],n?"\n":"");
}
return 0;
}
HDU 2027 统计元音
最新推荐文章于 2021-10-07 09:15:48 发布