#27. 合并数组
合并数组
Merge Arrays
Background
Congcong is organizing data and needs to merge two short data sets into one longer set.
Problem Description
Given two integer arrays, each of length , return a new array of length containing all their elements.
Input Format
Input is given from Standard Input in the following format.
a1 a2 b1 b2
Output Format
Output is to be printed to Standard Output in the following format.
[c1, c2, c3, c4]
Sample
1 2 3 4
[1, 2, 3, 4]
4 4 2 2
[4, 4, 2, 2]
9 2 3 4
[9, 2, 3, 4]
Sample Explanation
Merge the elements of the first array [1, 2] and the second array [3, 4] in order to get the new array [1, 2, 3, 4].
Constraints
Time limit: second, Memory limit: KiB for each test case.