#C12965. Remove Strings with Vowel at Even Indices
Remove Strings with Vowel at Even Indices
Remove Strings with Vowel at Even Indices
You are given a list of strings. Your task is to remove all strings that contain at least one vowel at an even index. Here, even indices are defined as \(0, 2, 4, \ldots\) (0-based indexing) and vowels are defined as \(V = \{a, e, i, o, u, A, E, I, O, U\}\). For example, consider the string "hello": at index 0 you have 'h' (not a vowel) and at index 2 you have 'l' (not a vowel), so "hello" would be kept if no even-index vowel exists. However, if a string like "apple" has a vowel at index 0 ('a'), it should be removed from the list.
The final output should display the remaining strings in the same order as they appear in the input, separated by a single space. If no strings remain after filtering, output an empty line.
inputFormat
The input is read from standard input (stdin) and is structured as follows:
- The first line contains a single integer \(n\), the number of strings in the list.
- The following \(n\) lines each contain a non-empty string.
outputFormat
Output a single line to standard output (stdout) containing the strings that remain after filtering. The strings should be separated by a single space. If no strings remain, output an empty line.
## sample5
hello
world
example
tst
string
world tst string