You are viewing a single comment's thread. Return to all comments →
Can anyone tell me why this code is only passing some of the test cases and not all ?
n, m = map(int, input().split()) arr = set(map(int, input().split())) s1 = set(map(int, input().split())) s2 = set(map(int, input().split()))
posititve = s1.intersection(arr) negative = s2.intersection(arr)
happines = len(posititve)-len(negative) print(happines)
Seems like cookies are disabled on this browser, please enable them to open this website
No Idea!
You are viewing a single comment's thread. Return to all comments →
Can anyone tell me why this code is only passing some of the test cases and not all ?
n, m = map(int, input().split()) arr = set(map(int, input().split())) s1 = set(map(int, input().split())) s2 = set(map(int, input().split()))
posititve = s1.intersection(arr) negative = s2.intersection(arr)
happines = len(posititve)-len(negative) print(happines)