Skip to content

Commit fb92902

Browse files
committed
[BOJ] 1822 차집합 (S4)
1 parent cca546a commit fb92902

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

심수연/5주차/260129.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# https://www.acmicpc.net/problem/1822
2+
3+
import sys
4+
input = sys.stdin.readline
5+
6+
numA, numB = map(int, input().split())
7+
A = set(input().split())
8+
B = set(input().split())
9+
10+
a_minus_b = A - B
11+
12+
print(len(a_minus_b))
13+
14+
sorted_a_minus_b = sorted(map(int, a_minus_b))
15+
print(*sorted_a_minus_b)

0 commit comments

Comments
 (0)