2302: 数组练习-6

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Normal Judger Creator:
Submit:15 Solved:9

Description

首先从键盘输入一个正整数m(代表一维数组a的元素个数),接着输m个整数(代表数组a的元素)。

再从键盘输入一个正整数n(代表一维数组b的元素个数),接着输n个整数(代表数组b的元素)。

然后将数组a和数组b中的元素首尾相连,形成数组c。

最后输出数组c的元素,输出的数据之间用空格分隔。

注:防止数组c溢出。

Input

5 15 2 0 7 8
4 10 11 12 10

Output

15 2 0 7 8 10 11 12 10

Sample Input Copy

6 8 18 19 6 15 0
3 8 8 4

Sample Output Copy

8 18 19 6 15 0 8 8 4

Source/Category