파이썬에서 제공하는 set의 연산 기능을 이용함.
def solution() : a, b = map(int, input().split()) set_a = set(map(int, input().split())) set_b = set(map(int, input().split())) print(len(set_b - set_a) + len(set_a - set_b)) solution()