You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': Neng=int(input()) eng=map(int,input().split()) Nfre=int(input()) fre=map(int,input().split()) eng=set(eng) fre=set(fre) s=eng.difference(fre) print(len(s))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .difference() Operation
You are viewing a single comment's thread. Return to all comments →