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

PROGRAMMING:Find elements that are not common to both arrays

Luz5年前 (2021-05-10)题库482
Given two integer arrays, this problem requires finding out the elements that are not common to both.
###Input format:
The input gives two arrays of integers in two lines. Each line gives a positive integer, $$n $$($$Le 20 $$), followed by $$n $$integers, separated by spaces.
###Output format:
In a row, output the elements that are not common to two groups according to the order given by the numbers. The numbers are separated by spaces, but there must be no extra spaces at the end of the line. The title guarantees at least one such number. The same number is not output repeatedly.
###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