-
[백준] 1269. 대칭 차집합코테 준비/Hash map 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())))
'코테 준비 > Hash map' 카테고리의 다른 글
[프로그래머스] 오픈채팅방 (0) 2024.02.02 [백준] 10815. 숫자카드 (다시보기) (1) 2023.01.19 9375. 패션왕 신해빈 ( 조합 공식의 중요성) (0) 2023.01.05 1620. 포켓몬 (17219. 비밀번호 찾기와 유사) (0) 2023.01.03 17219. 비밀번호 찾기 (딕셔너리 시간 단축) (0) 2022.12.29