#CCBCHBAHAI0000099. Sao chép mảng bằng vòng lặp
Sao chép mảng bằng vòng lặp
Copy an Array with a Loop
Source: Phuoc Hung OJ
Version: Phuoc Hung OJ Extended
Problem
Given an integer array , construct an independent array by copying element by element so that
This task practices array copying by index; whole-array assignment is not used for C array objects.
Input
The first line contains . The second line contains the elements of .
Output
Print the copied array .
Subtask
Subtask 1 (20 points): .
Subtask 2 (30 points): .
Subtask 3 (50 points): .
Example
Input
5
4 -2 7 7 0
Output
4 -2 7 7 0
Explanation
Each destination element receives the value at the same source index.