#164. 列表元素简单计算与格式化输出

    ID: 164 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatFunctional-1gesp1循环结构数学基础

列表元素简单计算与格式化输出

List Element Processing

Background

Congcong is doing a math exercise. He has received a set of numbers and needs to perform a specific calculation on each number.

Problem Description

Given a list of integers, return a new list where each integer is first added to 11, and then the result is multiplied by 1010.

Input Format

Input is given from standard input in the following format.

A single line containing multiple integers, separated by spaces.

Output Format

Output is printed to standard output in the following format.

A single line containing the processed list of integers, in the format [a, b, c, ...], where elements are separated by commas and spaces.

Sample

1 2 3
[20, 30, 40]
6 8 6 8 1
[70, 90, 70, 90, 20]
10
[110]

Sample Explanation

For the first sample, the input list is 1 2 3.

  • For 11, calculate (1+1)×10=20(1 + 1) \times 10 = 20.
  • For 22, calculate (2+1)×10=30(2 + 1) \times 10 = 30.
  • For 33, calculate (3+1)×10=40(3 + 1) \times 10 = 40. The final list is [20, 30, 40].

Constraints

Time limit: 11 second per test case. Memory limit: 10241024 KiB per test case.