알고리즘 문제/알고리즘 문제풀이

백준 10816 숫자카드 2

태윤2 2020. 10. 25. 22:37

 

 

1
2
3
4
5
6
7
8
9
from collections import Counter
import sys
input = sys.stdin.readline
n = int(input())
s = list(map(int, input().split()))
m = int(input())
s_ = list(map(int, input().split()))
s = Counter(s)
for i in s_: print(s[i], end=" ")
cs

 

 

저작자표시 비영리 변경금지 (새창열림)