코테 준비/Hash map

[백준] 1269. 대칭 차집합

imsmile2000 2023. 1. 24. 03:48
from collections import Counter
anum,bnum=map(int,input().split())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
count1=Counter(a)
count2=Counter(b)
print(len(list((count1-count2).elements()))+len(list((count2-count1).elements())))