Skip to content

Baekjoon 1822

1. Problem

문제 확인하기

2. Solution

N = map(int, input().split())

A = set(map(int, input().split()))
B = set(map(int, input().split()))

ans = []
for n in A:
    if n not in B:
        ans.append(n)

ans.sort()
print(len(ans))

if len(ans) != 0:
    print(*ans)