Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Alayna and Vowels

By shajia · Limits 1s, 512 MB

Alayna loves playing. Every night before going to sleep, she plays different games with Baba. Now Alayna seems bored with the old games she played many times. So she asked Baba to invent new games.

Baba has now made a very interesting game with vowels of English alphabet (Do not underestimate Alayna, she is a big girl now and she knows about vowels! ) .

The game is that, Baba gives a string that contains English letters and other characters. Alayna's work is to find the number of vowels from the given string.

As Maa is very strict regarding Baba and Alayna's sleep time, Alayna and Baba don't get much time for playing and Alayna cannot finish counting when Baba gives her a large string.

So little Alayna needs your help. You have to make a vowel calculator for Alayna which will give the number of vowels from a given string.


A single line contains a non-empty word. This word consists of lowercase and uppercase English letters and other characters( excluding space characters ). The length of the word will not exceed 103.


Output the number of vowels from the given string.





96% Solution Ratio

fsshakkhorEarliest, Mar '17

nazmulashaFastest, 0.0s

mobileLightest, 0 B

FahimSifnatulShortest, 43B


Login to submit

Toph uses cookies. By continuing you agree to our Cookie Policy.