#C3819. Distinct Vowel Counter
Distinct Vowel Counter
Distinct Vowel Counter
You are given a string and you need to check whether the string contains at least one vowel. If it does, count the number of distinct vowels present in the string. The vowels are defined as \(a, e, i, o, u\) and the check is case-insensitive.
If at least one vowel is found, output the message in the format: Contains X distinct vowels.
, where X
is the count of distinct vowels. If no vowels are found, output: No vowels found.
inputFormat
The input consists of a single line containing a string. The string may include letters, digits, and special characters.
outputFormat
Output a single line string as per the following rules:
- If at least one vowel is present, output:
Contains X distinct vowels.
- If no vowels are found, output:
No vowels found.
Hello World!
Contains 2 distinct vowels.