#162. 字符串三倍复制

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

字符串三倍复制

String Triple Copy

Background

Congcong is learning string manipulation. He encountered an interesting task that requires performing a specific transformation on a list of strings.

Problem Description

Given a list of strings, return a list where each string is replaced by 3 copies of the string concatenated together.

Input Format

Input is given from standard input in the following format.

A single line containing several strings, separated by spaces.

Output Format

Output is printed to standard output in the following format.

A single line containing a JSON array of strings. Each string in the array is the result of concatenating the corresponding input string three times.

Sample

"a" "bb" "ccc"
["aaa\