统计元音
时间限制: 1
Sec
提交:
200
[提交][状态][讨论版]
题目描述
统计每个元音字母在字符串中出现的次数。
输入
输入数据首先包括一个整数n,表示测试实例的个数,然后是n行长度不超过100的字符串。
输出
a:num1
e:num2
i:num3
o:num4
u:num5
多个测试实例之间由一个空行隔开。
请特别注意:最后一块输出后面没有空行:)
样例输入
1 2 3 |
<span>2 aeiou my name is ignatius</span> |
样例输出
1 2 3 4 5 6 7 8 9 10 11 |
<span>a:1 e:1 i:1 o:1 u:1 a:2 e:1 i:3 o:0 u:1</span> |
#include
#include
#include
using namespace std;
void ma(char a[100],int n,int i)
{
b=0,e=0,o=0,u=0,q=0,m=0;
}
int main()
{
}
This article is automatically posted by WP-AutoPost : WordPress自动采集发布插件
如何获取并设置Cookie采集需要登录才能浏览的内容?,WP-AutoPost