-->
当前位置:首页 > 题库

PROGRAMMING:{A} + {B}

Luz5年前 (2021-05-10)题库374
Give you two sets, request {a} + {B}
Note: there may be the same elements in the same set
###Input format:
Each group of input data is divided into three lines, the first line has two numbers n, m (0 < n, m < = 10000), which represent the number of elements of set a and set B respectively. The last two lines represent set a and set B respectively. Each element is an integer within the range of int, and each element is separated by a space
###Output format:
For each group of data, output a line of data, which represents the combined set, and output from small to large, with a space between each element
###Input example:
Here is a set of inputs. For example:
```in
1 2
one
2 3
1 2
one
1 2
```
###Output example:
The corresponding output is given here. For example:
```out
1 2 3
1 2
```







answer:If there is no answer, please comment