백준 1269번
https://www.acmicpc.net/problem/1269
문제
후기
기본적인 자료구조 문제다. set 자료형으로
(a-b) >> a에서 b를 없앤 차집합
(b-a) >> b에서 a를 없앤 차집합
두 차집합의 합의 길이를 더하면 정답이 출력된다.
나의 풀이
import sys
input= sys.stdin.readline
A, B = map(int,input().split())
a= set(map(int,input().split()))
b= set(map(int,input().split()))
print(len(a-b)+ len(b-a))