You are viewing a single comment's thread. Return to all comments →
can anyone plse tell me why my submission is failing
arr=list(input().split()) set_A=set(input().split()) set_B=set(input().split()) happiness=0 for i in arr: if i in set_A: happiness+=1
elif i in set_B: happiness-=1 else: continue
print(happiness)
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 plse tell me why my submission is failing
arr=list(input().split()) set_A=set(input().split()) set_B=set(input().split()) happiness=0 for i in arr: if i in set_A: happiness+=1
print(happiness)