#173. 按长度筛选字符串

    ID: 173 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatFunctional-2gesp3字符串

按长度筛选字符串

Filter Short Strings

Background

In daily text processing, we often need to filter strings based on specific conditions. For example, sometimes we are only interested in short, concise words.

Problem Description

Given a list of strings, return a new list containing only those strings with a length strictly less than 44.

Input Format

Input is given from Standard Input in the following format.

The input consists of a single line, representing a list of strings. Strings are separated by spaces and enclosed in double quotes.

Output Format

Output should be printed to Standard Output in the following format.

Output a list of strings containing all strings with a length strictly less than 44. The output format is similar to the input, with strings separated by commas and spaces, enclosed in square brackets.

Sample

"this" "not" "too" "long"
["not\