1374: C++二级辅导-求同存异

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:9 Solved:9

Description



输入两个数组(数组元素个数6和8),输出在两个数组中都出现的元素(如a[6]={2,3,4,5,6,7},b[8]={3,5,7,9,11,13,15,19},则输出357)。


Sample Input Copy

2 3 4 5 6 7
3 5 7 9 11 13 15 19

Sample Output Copy

3
5
7