#CCBCHBAHAI0000078. Concatenation of Array
Concatenation of Array
Concatenation of Array
Source: LeetCode
Version: Phuoc Hung OJ Extended
Problem
Given an integer array , construct an array of length by concatenating two copies of . For every ,
Print .
Input
The first line contains . The second line contains integers .
Output
Print the integers on one line.
Subtask
Subtask 1 (20 points): , .
Subtask 2 (30 points): , .
Subtask 3 (50 points): , .
Example
Input
4
1 3 2 1
Output
1 3 2 1 1 3 2 1
Explanation
The output follows directly from the mathematical definition above.