10816
-
[Python] BOJ 10816 : 숫자 카드 2코딩테스트/백준 2024. 9. 22. 21:36
https://www.acmicpc.net/problem/10815위 문제의 변형이다. 요구사항비교할 숫자 카드 집합 = A, 비교 당할 숫자 카드 집합 = B 라고 하겠다. B 집합에 A 집합이 몇 개씩 들어 있는 지 출력하는 문제이다.설계두 리스트를 비교하고 개수를 저장할 리스트를 초기화한다.저장된 리스트를 출력한다.틀린 답안 예시import sysinput = lambda: sys.stdin.readline().rstrip()N = int(input())arr1 = list(map(int, input().split()))print(arr1)M = int(input())arr2 = list(map(int, input().split()))print(arr2)result = [0] * Mfor i in..