#171. 列表范围整数过滤

    ID: 171 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatFunctional-2gesp1循环结构条件结构

列表范围整数过滤

Filter Integers in Range

Background

Dawei is organizing a list of numbers and wants to remove some specific numbers to meet his organizational needs.

Problem Description

Given a list of integers, return a new list of those numbers, omitting any that are between 1313 and 1919 inclusive.

Input Format

Input is given from Standard Input in the following format.

A single line containing several integers, separated by spaces. These integers represent the elements in the original list.

Output Format

Output is printed to Standard Output in the following format.

A single line containing the filtered integers, separated by commas and enclosed in square brackets []. If the filtered list is empty, output [].

Sample

[12 13 19 20]
[12, 20]
[1 14 1]
[1, 1]
[15]
[]

Sample Explanation

For the first sample [12 13 19 20], the numbers 1313 and 1919 are between 1313 and 1919 (inclusive), so they are removed. The final list is [12, 20].

Constraints

Time limit: 11 second, Memory limit: 10241024 KiB for each test case.