You are viewing a single comment's thread. Return to all comments →
Wouldn't be Pythonic without 1 liner
print(input() == 0 or len(set(input().split()).intersection(input() == 0 or set(input().split()))))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →
Wouldn't be Pythonic without 1 liner