백준108161 [백준] 10816번 숫자 카드 2 - Python 문제 링크: https://www.acmicpc.net/problem/10816 머릿속으로 생각했던 것보다 어려웠던 문제였습니다. 아래는 전체 코드입니다.import sysinput = sys.stdin.readlineN = int(input())n_group = list(map(int, input().split()))M = int(input())m_group = list(map(int, input().split()))count_dict = {}for num in n_group: if num in count_dict: count_dict[num] += 1 else: count_dict[num] = 1result = []for i in m_group: count =.. 2024. 12. 10. 이전 1 다음