#PCBNAM0000011. Số lượng và hai bản sao dãy (Two Copies of an Integer Array)
Số lượng và hai bản sao dãy (Two Copies of an Integer Array)
Two Copies of an Integer Array
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
Given integer and an array of exactly integers, print the entire array twice on two consecutive lines. Each copy must preserve the number, order, and values of all elements.
Input
Line 1 contains . Line 2 contains exactly integers separated by whitespace.
Output
Print the array on two consecutive lines. On each line, the elements are separated by exactly one space.
Subtasks
- Subtask 1 — 100 points: ; for all .
Examples
Input
3
1 2 3
Output
1 2 3
1 2 3
Explanation
The first line gives and the following line contains , , . The call list(map(int, ...)) stores all three integers in values. The first print(*values) produces 1 2 3. The second call reuses the preserved list and prints 1 2 3 again.