Sign in $ create-account
~/problems ~/discussion ~/contests ~/submission
← ~/problems
P2014

Count the Vowels

Easy
// Description
Count the number of vowels (a, e, i, o, u) in a lowercase string.
// Input
A single line containing a string of lowercase letters (length <= 1000).
// Output
The number of vowels in the string.
// Hint
Scan the string once and test each character.
// Samples
Sample Input
hello
Sample Output
2
// Problem Info
DifficultyEasy
Acceptance50%
Time Limit1000 ms
Memory Limit65536 KB
Accepted5
Strings
// Discussion

No Discussion