Two arrays
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Two arrays of integers are given. Print the elements from the first array (in the same order like they are given in the first array), that are absent in the second array.
Input
First given number of elements in the first array, then given integers — the elements of array. Then given the number of elements in the second array. Then given elements of the second array. The number of elements in each array is not greater than . All elements are integers.
Output
Print in the first line the number of required elements. In the second line print those elements of the first array, that are absent in the second array in the same order like in the first array.
Examples
Input #1
Answer #1
Submissions 11K
Acceptance rate 56%