#K2056. Count Vowels in Strings

    ID: 24651 Type: Default 1000ms 256MiB

Count Vowels in Strings

Count Vowels in Strings

Given a list of strings, your task is to count the number of vowels in each string. The vowels are defined as {a,e,i,o,u}\{a, e, i, o, u\} and the counting should be case-insensitive. For each input string, output the corresponding vowel count in a dictionary format where the keys are the original strings in the order they are provided.

inputFormat

The first line contains an integer nn, denoting the number of strings. The following nn lines each contain one non-empty string.

outputFormat

Output a dictionary-like string where each key is one of the input strings and its corresponding value is the number of vowels in that string. The output format should exactly follow the pattern: {"string1": count1, "string2": count2, ...} with keys appearing in the same order as the input.## sample

3
hello
world
AEIOU
{"hello": 2, "world": 1, "AEIOU": 5}