QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB Total points: 100

#23870. 统计元音字母

Statistics

给定一个由小写英文字母组成的长度为 $N$ 的字符串 $S$。请求出 $S$ 中元音字母的个数,即 a、i、u、e、o 的个数总和。

输入格式

输入从标准输入按以下格式给出:

$$ \begin{aligned} &N \\ &S \end{aligned} $$

输出格式

输出 $S$ 中元音字母的个数,即 a、i、u、e、o 的个数总和。

数据范围

  • $1 \le N \le 50$。
  • $S$ 是长度为 $N$ 的字符串。
  • $S$ 的每个字符均为小写英文字母。

样例

输入格式 1

8
joiyosen

输出格式 1

4

说明 1

  • 元音字母为 _oi_o_e_,共 $4$ 个。

输入格式 2

6
bitaro

输出格式 2

3

说明 2

  • 元音字母为 _i_a_o,共 $3$ 个。

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.