#185. 字符串列表按长度过滤

    ID: 185 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatAp-1gesp3一维数组字符串

字符串列表按长度过滤

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 NN, representing the number of strings in the array. The second line contains NN strings, separated by spaces. The third line contains an integer lenlen, 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 lenlen. 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\