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

PROGRAMMING:Find the data not belongs to both arrays

Luz5年前 (2021-05-10)题库606
For 2 given arrays A and B, find all the data are not belong to both array A and array B. The elements in both arrays are less than or equal to 20.
###Input format
Input all the elements of one array in each line; the first data in each line is the number of the array (≤20) .
###Output format:
Output all the satisfied number in one line. Seperate each number by 1 space in the lines, no space at the end. Dont output duplicate numbers.
###Input example:
```in
10 3 -5 2 8 0 3 5 -15 9 100
11 6 4 8 2 6 -5 9 0 100 8 1
```
###Output example:
```out
3 5 -15 6 4 1
```







answer:If there is no answer, please comment