Easystringsloops
Count Vowels
Time limit 2 s · Memory 64 MBAcceptance: 16.7%Solved by: 1 / 2 tried
Statement
You are given one line of Latin letters and spaces. Print how many vowels it contains. Vowels are a, e, i, o, u in either case.
Examples
Example 1
Input
hello world
Output
3
Example 2
Input
xyz
Output
0
Constraints
- String length is between 1 and 10^5