#185. 字符串列表按长度过滤
字符串列表按长度过滤
String Filtering
Background
Congcong is organizing an important list of strings. He needs a tool that can quickly remove all strings of a specified length from the list, generating a new list.
Problem Description
Given an array of strings, return a new list (e.g., an ArrayList) where all strings of the given length are omitted.
Input Format
Input is given from standard input in the following format.
The first line contains an integer , representing the number of strings in the array. The second line contains strings, separated by spaces. The third line contains an integer , representing the length of strings to be omitted.
Output Format
Output is printed to standard output in the following format.
Output a new list that does not contain strings of length . The strings in the list should maintain their original order, be separated by commas and spaces, and enclosed in square brackets
[].
Sample
4
a bb b ccc
1
["bb\