목록10815 (1)
하루일문
[백준] 10815 숫자카드(파이썬)
문제 10815번: 숫자 카드 첫째 줄에 상근이가 가지고 있는 숫자 카드의 개수 N(1 ≤ N ≤ 500,000)이 주어진다. 둘째 줄에는 숫자 카드에 적혀있는 정수가 주어진다. 숫자 카드에 적혀있는 수는 -10,000,000보다 크거나 같고, 10, www.acmicpc.net 코드 import sys input = sys.stdin.readline N = int(input()) card = list(map(int, input().split())) M = int(input()) card2 = list(map(int, input().split())) dic = {} for i in card: dic[i] = 0 for i in card2: if i in dic: print(1, end=" ") else:..
algorithm/baekjoon
2023. 3. 8. 23:55