QOJ.ac

QOJ

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

#23870. Räkna vokaler

統計

Du får en sträng $S$ av längd $N$ som består av små engelska bokstäver. Bestäm det totala antalet vokaler i $S$, det vill säga summan av antalet förekomster av a, i, u, e och o.

Indata

Indatan ges från standardinmatningen i följande format:

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

Utdata

Skriv ut det totala antalet vokaler i $S$, det vill säga summan av antalet förekomster av a, i, u, e och o.

Begränsningar

  • $1 \le N \le 50$.
  • $S$ är en sträng av längd $N$.
  • Varje tecken i $S$ är en liten engelsk bokstav.

Exempel

Indata 1

8
joiyosen

Utdata 1

4

Förklaring 1

  • Det finns $4$ vokaler: _oi_o_e_.

Indata 2

6
bitaro

Utdata 2

3

Förklaring 2

  • Det finns $3$ vokaler: _i_a_o.

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.