QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 1024 MB 총점: 100

#23870. Zliczanie samogłosek

통계

Dany jest napis $S$ o długości $N$, składający się z małych liter alfabetu angielskiego. Oblicz łączną liczbę samogłosek w napisie $S$, czyli sumę liczby wystąpień liter a, i, u, e oraz o.

Wejście

Wejście podawane jest ze standardowego wejścia w następującym formacie:

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

Wyjście

Wypisz łączną liczbę samogłosek w napisie $S$, czyli sumę liczby wystąpień liter a, i, u, e oraz o.

Ograniczenia

  • $1 \le N \le 50$.
  • $S$ jest napisem o długości $N$.
  • Każdy znak napisu $S$ jest małą literą alfabetu angielskiego.

Przykład

Wejście 1

8
joiyosen

Wyjście 1

4

Uwaga 1

  • Samogłoski to $4$ znaki: _oi_o_e_.

Wejście 2

6
bitaro

Wyjście 2

3

Uwaga 2

  • Samogłoski to $3$ znaki: _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.