We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c4f3886 commit b904f19Copy full SHA for b904f19
1 file changed
심수연/11주차/260309.py
@@ -0,0 +1,21 @@
1
+# https://www.acmicpc.net/problem/1764
2
+
3
+import sys
4
+input = sys.stdin.readline
5
6
+N, M = map(int, input().split())
7
8
+didnt_heard = set()
9
+didnt_see = set()
10
11
+for _ in range(N):
12
+ didnt_heard.add(input().strip())
13
14
+for _ in range(M):
15
+ didnt_see.add(input().strip())
16
17
+didnt_heard_see = sorted(list(didnt_heard & didnt_see))
18
19
+print(len(didnt_heard_see))
20
+for i in didnt_heard_see:
21
+ print(i)
0 commit comments