Baekjoon #1269

Baekjoon #1269

1개의 풀이 · Python

문제 원문 보기 ↗

SOLUTION INFO

Python · main.py

main.py
import sys
from collections import defaultdict

def input():
    return sys.stdin.readline().rstrip()

len_a, len_b = map(int, input().split())
dict_a = defaultdict(int)

for number in map(int, input().split()):
    dict_a[number] = 1

cnt = 0

for number in map(int, input().split()):
    if dict_a[number]:
        cnt += 1

answer = (len_a - cnt) + (len_b - cnt)
print(answer)

SOLUTION DESCRIPTION

풀이 설명

등록된 풀이 설명이 없습니다.