QOJ.ac

QOJ

実行時間制限: 2 s メモリ制限: 1024 MB 満点: 100

#23870. Counting Vowels

統計

問題文

長さ $N$ の英小文字からなる文字列 $S$ が与えられる.$S$ のうち母音字の個数,つまり a,i,u,e,o の個数の総和を求めよ.

制約

  • $1 ≦ N ≦ 50$.
  • $S$ は長さ $N$ の文字列である.
  • $S$ の各文字は英小文字である.

入力

入力は以下の形式で標準入力から与えられる.
$N$
$S$

出力

$S$ のうち母音字の個数,つまり a,i,u,e,o の個数の総和を出力せよ.

入出力例

入力例 1
8
joiyosen

出力例 1
4

  • 母音字は _oi_o_e_ の $4$ 個である.

入力例 2
6
bitaro

出力例 2
3

  • 母音字は _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.