We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Set .symmetric_difference() Operation
Set .symmetric_difference() Operation
Sort by
recency
|
288 Discussions
|
Please Login in order to post a comment
Raw code approach without inbuilt functions O( n log n + m log m)
to make code a bit more consisten in basic set operation I creates simple function to read input:
my code:
this code will work
s=input() k=list(map(int,input().split())) o=set(k) g=input() a=list(map(int,input().split())) j=set(a) q=j^o print(len(q))