#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
char aeiou[5] = { 'a','e','i','o','u' };
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
while (true) {
string s; getline(cin, s);
if (s == "#") break;
transform(s.begin(), s.end(), s.begin(), ::tolower);
int cnt = 0;
for (int i = 0; i < s.length(); i++) {
for (int k = 0; k < 5; k++) {
if (s[i] == aeiou[k]) cnt++;
}
}
cout << cnt << "\n";
}
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 12851๋ฒ - ์จ๋ฐ๊ผญ์ง2 (0) | 2021.11.04 |
---|---|
[๋ฐฑ์ค,c++] 12813๋ฒ - ์ด์ง์ ์ฐ์ฐ (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 12738๋ฒ - ๊ฐ์ฅ ๊ธด ์ฆ๊ฐํ๋ ๋ถ๋ถ ์์ด3 (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 1261๋ฒ - ์๊ณ ์คํ (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 12605๋ฒ - ๋จ์ด ์์ ๋ค์ง๊ธฐ (0) | 2021.11.02 |
[๋ฐฑ์ค,c++] 1260๋ฒ - DFS์ BFS (0) | 2021.11.02 |
๋๊ธ