QOJ.ac

QOJ

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

#23870. Conteggio delle vocali

Statistics

È data una stringa $S$ di lunghezza $N$ composta da lettere minuscole dell'alfabeto inglese. Trova il numero totale di vocali in $S$, ovvero la somma del numero di occorrenze di a, i, u, e e o.

Input

L'input è fornito dallo standard input nel seguente formato:

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

Output

Stampa il numero totale di vocali in $S$, ovvero la somma del numero di occorrenze di a, i, u, e e o.

Vincoli

  • $1 \le N \le 50$.
  • $S$ è una stringa di lunghezza $N$.
  • Ogni carattere di $S$ è una lettera minuscola dell'alfabeto inglese.

Esempi

Input 1

8
joiyosen

Output 1

4

Note 1

  • Le vocali sono $4$: _oi_o_e_.

Input 2

6
bitaro

Output 2

3

Note 2

  • Le vocali sono $3$: _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.