본문 바로가기
알고리즘 문제/알고리즘 문제풀이

백준 10816 숫자카드 2

by 태윤2 2020. 10. 25.

 

 

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