Skip to content

Commit a9989f1

Browse files
solves no idea
1 parent 35b3a5c commit a9989f1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: sets/no-idea.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
n, m = map(int, input().split())
2+
3+
array = list(map(int, input().split()))
4+
A = set(map(int, input().split()))
5+
B = set(map(int, input().split()))
6+
7+
happiness = 0
8+
for element in array:
9+
if element in A:
10+
happiness += 1
11+
elif element in B:
12+
happiness -= 1
13+
14+
print(happiness)

0 commit comments

Comments
 (0)